activating tags, finishing categories

This commit is contained in:
Holger Reinhardt 2016-01-04 22:19:40 +01:00
parent 0e39c749bf
commit ef31064b85
7 changed files with 73 additions and 30 deletions

View file

@ -2,36 +2,43 @@
layout: default layout: default
--- ---
<header id="post-header"> <article class="page">
<h1 id="post-title">{{ page.tag }}</h1> <h1>{{page.title}}</h1>
<h4 id="post-subtitle">Articles by tag</h4>
</header>
<div id="post-content"> <p class='info'>
{% if site.tags[page.tag] %} <span>Articles by tag</span>
{% for post in site.tags[page.tag] %} </p>
{% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if forloop.first %}
<h3>{{ post_year }}</h3><div class="list-group">
{% endif %}
{% if forloop.first == false %} <hr/>
{% assign previous_index = forloop.index0 | minus: 1 %}
{% capture previous_post_year %}{{ site.tags[page.tag][previous_index].date | date: '%Y' }}{% endcapture %} <div id="post-content">
{% if post_year != previous_post_year %} {% if site.tags[page.tag] %}
</div><h3>{{ post_year }}</h3><div class="list-group"> {% for post in site.tags[page.tag] %}
{% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if forloop.first %}
<h3>{{ post_year }}</h3><ul>
{% endif %} {% endif %}
{% endif %}
<a href="{{ post.url }}/" class="list-group-item"> {% if forloop.first == false %}
<h4 class="list-group-item-heading">{{ post.title }}</h4> {% assign previous_index = forloop.index0 | minus: 1 %}
</a> {% capture previous_post_year %}{{ site.tags[page.tag][previous_index].date | date: '%Y' }}{% endcapture %}
{% if post_year != previous_post_year %}
</div><h3>{{ post_year }}</h3><div class="list-group">
{% endif %}
{% endif %}
{% if forloop.last %} <li>
</div> <a href="{{ post.url }}/" class="read-more">
{% endif %} {{ post.title }}
{% endfor %} </a>
{% else %} </li>
<p>There are no posts for this tag.</p>
{% endif %} {% if forloop.last %}
</div> </ul>
{% endif %}
{% endfor %}
{% else %}
<p>There are no posts for this tag.</p>
{% endif %}
</div>
</article>

6
meta/category/api.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: post_by_category
title: API
category: api
permalink: /meta/category/api/
---

View file

@ -0,0 +1,6 @@
---
layout: post_by_category
title: Conference
category: conference
permalink: /meta/category/conference/
---

6
meta/category/howto.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: post_by_category
title: Howto
category: howto
permalink: /meta/category/howto/
---

6
meta/category/product.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: post_by_category
title: Product
category: product
permalink: /meta/category/product/
---

6
meta/tag/docker.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: post_by_tag
title: Docker
tag: docker
permalink: /meta/tag/docker/
---

6
meta/tag/security.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: post_by_tag
title: Security
tag: security
permalink: /meta/tag/security/
---