From ef31064b853fa7ed5fcc836d13fd96cb9c1936b3 Mon Sep 17 00:00:00 2001 From: Holger Reinhardt Date: Mon, 4 Jan 2016 22:19:40 +0100 Subject: [PATCH] activating tags, finishing categories --- _layouts/post_by_tag.html | 67 ++++++++++++++++++++----------------- meta/category/api.md | 6 ++++ meta/category/conference.md | 6 ++++ meta/category/howto.md | 6 ++++ meta/category/product.md | 6 ++++ meta/tag/docker.md | 6 ++++ meta/tag/security.md | 6 ++++ 7 files changed, 73 insertions(+), 30 deletions(-) create mode 100644 meta/category/api.md create mode 100644 meta/category/conference.md create mode 100644 meta/category/howto.md create mode 100644 meta/category/product.md create mode 100644 meta/tag/docker.md create mode 100644 meta/tag/security.md diff --git a/_layouts/post_by_tag.html b/_layouts/post_by_tag.html index 69ea789..296c54a 100644 --- a/_layouts/post_by_tag.html +++ b/_layouts/post_by_tag.html @@ -2,36 +2,43 @@ layout: default --- -
-

{{ page.tag }}

-

Articles by tag

-
+
+

{{page.title}}

-
- {% if site.tags[page.tag] %} - {% for post in site.tags[page.tag] %} - {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} - {% if forloop.first %} -

{{ post_year }}

- {% endif %} - - {% if forloop.first == false %} - {% assign previous_index = forloop.index0 | minus: 1 %} - {% capture previous_post_year %}{{ site.tags[page.tag][previous_index].date | date: '%Y' }}{% endcapture %} - {% if post_year != previous_post_year %} -

{{ post_year }}

+

+ Articles by tag +

+ +
+ +
+ {% if site.tags[page.tag] %} + {% for post in site.tags[page.tag] %} + {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% if forloop.first %} +

{{ post_year }}

    {% endif %} - {% endif %} - - -

    {{ post.title }}

    -
    + + {% if forloop.first == false %} + {% assign previous_index = forloop.index0 | minus: 1 %} + {% capture previous_post_year %}{{ site.tags[page.tag][previous_index].date | date: '%Y' }}{% endcapture %} + {% if post_year != previous_post_year %} +

{{ post_year }}

+ {% endif %} + {% endif %} + +
  • + + {{ post.title }} + +
  • - {% if forloop.last %} -
    - {% endif %} - {% endfor %} - {% else %} -

    There are no posts for this tag.

    - {% endif %} -
    \ No newline at end of file + {% if forloop.last %} + + {% endif %} + {% endfor %} + {% else %} +

    There are no posts for this tag.

    + {% endif %} +
    +
    \ No newline at end of file diff --git a/meta/category/api.md b/meta/category/api.md new file mode 100644 index 0000000..423cf62 --- /dev/null +++ b/meta/category/api.md @@ -0,0 +1,6 @@ +--- +layout: post_by_category +title: API +category: api +permalink: /meta/category/api/ +--- diff --git a/meta/category/conference.md b/meta/category/conference.md new file mode 100644 index 0000000..ac2a777 --- /dev/null +++ b/meta/category/conference.md @@ -0,0 +1,6 @@ +--- +layout: post_by_category +title: Conference +category: conference +permalink: /meta/category/conference/ +--- diff --git a/meta/category/howto.md b/meta/category/howto.md new file mode 100644 index 0000000..73f73b7 --- /dev/null +++ b/meta/category/howto.md @@ -0,0 +1,6 @@ +--- +layout: post_by_category +title: Howto +category: howto +permalink: /meta/category/howto/ +--- diff --git a/meta/category/product.md b/meta/category/product.md new file mode 100644 index 0000000..31e8a28 --- /dev/null +++ b/meta/category/product.md @@ -0,0 +1,6 @@ +--- +layout: post_by_category +title: Product +category: product +permalink: /meta/category/product/ +--- diff --git a/meta/tag/docker.md b/meta/tag/docker.md new file mode 100644 index 0000000..47d5f9f --- /dev/null +++ b/meta/tag/docker.md @@ -0,0 +1,6 @@ +--- +layout: post_by_tag +title: Docker +tag: docker +permalink: /meta/tag/docker/ +--- \ No newline at end of file diff --git a/meta/tag/security.md b/meta/tag/security.md new file mode 100644 index 0000000..82e9015 --- /dev/null +++ b/meta/tag/security.md @@ -0,0 +1,6 @@ +--- +layout: post_by_tag +title: Security +tag: security +permalink: /meta/tag/security/ +---