Add sample _root pages.

This commit is contained in:
Jade Dominguez 2013-09-09 22:35:03 -07:00
parent 4dd6ca1c45
commit f705830138
5 changed files with 69 additions and 0 deletions

4
_root/archive.html Normal file
View file

@ -0,0 +1,4 @@
{{# posts.collated }}
{{> posts_collate }}
{{/ posts.collated }}

15
_root/categories.html Normal file
View file

@ -0,0 +1,15 @@
<ul class="tag_box inline">
{{# posts.categories.all }}
{{> categories_list }}
{{/ posts.categories.all }}
</ul>
{{# posts.categories.all }}
<h3>{{ name }} ({{ count }})</h3>
<ul>
{{# posts?to_posts }}
{{> posts_list }}
{{/ posts?to_posts }}
</ul>
{{/ posts.categories.all }}

31
_root/index.html Normal file
View file

@ -0,0 +1,31 @@
---
title: Home
description:
---
## Hello World
{{# posts.paginator }}
<div class="post">
<h3 class="title"><a href="{{url}}">{{title}}</a> <span class="date">{{ date }}</span></h3>
{{{ summary }}}
<div class="more">
<a href="{{url}}" class="btn btn-small">read more..</a>
</div>
</div>
{{/ posts.paginator }}
<div class="pagination">
<ul>
{{#posts.paginator_navigation}}
{{#is_active_page}}
<li class="active"><a href="{{url}}">{{name}}</a></li>
{{/is_active_page}}
{{^is_active_page}}
<li><a href="{{url}}">{{name}}</a></li>
{{/is_active_page}}
{{/posts.paginator_navigation}}
</ul>
</div>

6
_root/pages.html Normal file
View file

@ -0,0 +1,6 @@
<ul>
{{# _root.all }}
{{> pages_list }}
{{/ _root.all }}
</ul>

13
_root/tags.html Normal file
View file

@ -0,0 +1,13 @@
<ul class="tag_box inline">
{{# posts.tags.all }}
{{> tags_list }}
{{/ posts.tags.all }}
</ul>
{{# posts.tags.all }}
<h3 id="{{name}}-ref">{{name}}</h3>
{{# posts?to_posts }}
<li><a href="{{url}}">{{title}}</a></li>
{{/ posts?to_posts }}
{{/ posts.tags.all }}