Fix #49

Rodrigo Alvarez committed May 14, 2013
commit 081403ec06d0aa85ed8df745e1097c28b1ec9688
Showing 2 changed files with 40 additions and 8 deletions
generators/page/template.liquid.haml.tt +6 -7
@@ @@ -2,26 +2,25 @@
title: <%= config[:slug].humanize -%>
<% if config[:translated] %>
- # TODO: explain it (used only if the page is not for the defaut locale)
+ # unique identifier for urls, the same as a permalink
slug: <%= config[:slug] -%>
<% end %>
- # TODO: explain it
+ # true if the page is included in the menu
listed: true
- # TODO: explain it
+ # true if the page is published
published: true
- # TODO: explain it
+ # position among sibling pages
# position: 1
- # TODO: explain it
+ # sets a redirection to the given url (301)
# redirect_url: "<url to a page or to a remote url>"
- # TODO: explain it
+ # content type that this page is templatizing
# content_type: "<slug of one of the content types>"
- # TODO: explain it
# editable_elements:
# 'some_block/some_slug': "<text>"
# 'some_block/some_slug': "<relative path to the file under the public/samples folder>"
generators/page/template.liquid.tt +34 -1
@@ @@ -1 +1,34 @@
- TEST LIQUID
\ No newline at end of file
+ ---
+ title: <%= config[:slug].humanize -%>
+ <% if config[:translated] %>
+
+ # unique identifier for urls, the same as a permalink
+ slug: <%= config[:slug] -%>
+ <% end %>
+
+ # true if the page is included in the menu
+ listed: true
+
+ # true if the page is published
+ published: true
+
+ # position among sibling pages
+ # position: 1
+
+ # sets a redirection to the given url (301)
+ # redirect_url: "<url to a page or to a remote url>"
+
+ # content type that this page is templatizing
+ # content_type: "<slug of one of the content types>"
+
+ # editable_elements:
+ # 'some_block/some_slug': "<text>"
+ # 'some_block/some_slug': "<relative path to the file under the public/samples folder>"
+ ---
+ {% extends parent %}
+
+ {% block main %}
+
+ <p>Hello world</p>
+
+ {% endblock %}