added partials

This commit is contained in:
AJ ONeal 2015-01-08 22:26:55 +00:00
parent cb0a2fe189
commit 832b4e1af3
1 changed files with 32 additions and 0 deletions

32
partials.yml Normal file
View File

@ -0,0 +1,32 @@
---
pages_list: |
<li {{# active }}class="active"{{/ active }}
><a href="{{{ path }}}" {{# active }}class="active"{{/ active }}>{{ title }}</a
></li>
# [{ 'year': year,
# 'months' : [{ 'month' : month,
# 'pages': [{}, {}, ..] }, ..] }, ..]
posts_collate: |
{{# years }}
{{> posts_collate_year }}
{{/ years }}
posts_collate_year: |
{{# months }}
<h2>{{ year }}</h2>
{{> posts_collate_month }}
{{/ months }}
posts_collate_month: |
{{# pages }}
<h3>{{ month }}</h3>
<ul>
{{> posts_collate_pages }}
</ul>
{{/ pages }}
posts_collate_pages: |
<li
><span>date</span> » <a href="{{url}}">{{ title }}</a
></li>