Skip to content

Commit

Permalink
adds optional category description (fixes #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trybnetic committed Sep 10, 2017
1 parent 314190e commit 40a4b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _layouts/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% include nav.html %}
<div id="content-left">
<h2>Category: {{page.category}}</h2>
{% assign content = page.content | strip_newlines %}
{% if content != "" %}
{{content}}
{% endif %}
{% for post in site.categories[page.category] %}
<div id="post-short">
<a href="{{site.url}}{{site.baseurl}}{{post.url}}">
Expand Down
1 change: 1 addition & 0 deletions categories/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ layout: category
category: update
permalink: /categories/update/
---
This is an example description.

0 comments on commit 40a4b0b

Please sign in to comment.