Permalink
Browse files

Build post title from slug when using the post generator.

  • Loading branch information...
1 parent 8027768 commit 74a8372523c270ae0dee0127313da7480ce2cdc0 @nathanaelkane nathanaelkane committed Jun 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/postmarkdown/templates/example-post.markdown
@@ -1,5 +1,5 @@
---
-title: Example Post
+title: <%= slug.underscore.humanize %>
<%- if author = Postmarkdown::Util.git_config('user.name') -%>
author: <%= author %>
<%- end -%>

0 comments on commit 74a8372

Please sign in to comment.