diff options
Diffstat (limited to 'posts.md')
-rw-r--r-- | posts.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/posts.md b/posts.md new file mode 100644 index 0000000..f753a88 --- /dev/null +++ b/posts.md @@ -0,0 +1,28 @@ +--- +layout: page +title: "Posts" +permalink: /posts/ +main_nav: true +--- + +{% for category in site.categories %} + {% capture cat %}{{ category | first }}{% endcapture %} + <h2 id="{{cat}}">{{ cat | capitalize }}</h2> + {% for desc in site.descriptions %} + {% if desc.cat == cat %} + <p class="desc"><em>{{ desc.desc }}</em></p> + {% endif %} + {% endfor %} + <ul class="posts-list"> + {% for post in site.categories[cat] %} + <li> + <strong> + <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> + </strong> + <span class="post-date">- {{ post.date | date_to_long_string }}</span> + </li> + {% endfor %} + </ul> + {% if forloop.last == false %}<hr>{% endif %} +{% endfor %} +<br> |