diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2012-01-14 19:25:54 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2012-01-14 19:25:54 +0000 |
| commit | d9e379d1e7d3e3f802d74bb15ded562ab13354e3 (patch) | |
| tree | daedd0cc2b2f69abb4e0c23a9b80d21f466df2a5 /_site_build/_layouts | |
| parent | bee356476f2932f69b05c0b1d8decd0e1843ff6b (diff) | |
Add categories for posts.
Diffstat (limited to '_site_build/_layouts')
| -rw-r--r-- | _site_build/_layouts/category_index.html | 10 | ||||
| -rw-r--r-- | _site_build/_layouts/post.html | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/_site_build/_layouts/category_index.html b/_site_build/_layouts/category_index.html new file mode 100644 index 0000000..729ff2e --- /dev/null +++ b/_site_build/_layouts/category_index.html @@ -0,0 +1,10 @@ +--- +layout: default +robots: follow, noindex, noodp, noydir, noarchive +--- +<section id="category"> + <h1>{{ page.title }}</h1> + {% for post in site.categories[page.category] %} + {% include post_excerpt.html %} + {% endfor %} +</section> diff --git a/_site_build/_layouts/post.html b/_site_build/_layouts/post.html index e45ca24..61f0d09 100644 --- a/_site_build/_layouts/post.html +++ b/_site_build/_layouts/post.html @@ -5,6 +5,9 @@ layout: default <header> <h1>{{ page.title }}</h1> <time datetime="{{ page.date | date: '%Y-%m-%d' }}" pubdate>{{ page.date | date: '%A' }} {{ page.date | ordinalize }} {{ page.date | date: '%B, %Y' }}</time> + {% if page.categories.size != 0 %} + <div class="categories">Posted in {{ page.categories | category_links }}</div> + {% endif %} </header> {{ content }} <footer> |
