new page features useful for sitemap traversal

support indexes which use the `directory_index` extension
add a `data` accessor to pages
This commit is contained in:
Eric Skogen 2011-12-25 01:02:50 -06:00
parent dd8391be93
commit cf6661fa45
9 changed files with 69 additions and 8 deletions

View file

@ -0,0 +1,3 @@
---
title: Title of Sibling One
---

View file

@ -0,0 +1,3 @@
---
title: Title of Sibling Two
---

View file

@ -10,4 +10,10 @@ Source: <%= current_page.source_file.sub(root + "/", "") %>
<% current_page.siblings.each do |p| %>
Sibling: <%= p.path %>
<% end %>
<% current_page.children.each do |p| %>
<% if p.data %>
Data: <%= p.data %>
<% end %>
<% end %>