From 531a7622ee63b82a7c9064b0a6a12ca921282373 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 30 Jan 2018 22:41:47 +0000 Subject: [PATCH] Style tags table --- source/_includes/post/tags.html.twig | 16 +++++++++------ source/blog/tags.html | 29 ++++++++++++++++++++++------ 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/source/_includes/post/tags.html.twig b/source/_includes/post/tags.html.twig index 882505e7..d1cb6619 100644 --- a/source/_includes/post/tags.html.twig +++ b/source/_includes/post/tags.html.twig @@ -1,9 +1,13 @@ {% if page.tags %} -
- {% for tag in page.tags %} - - {{- tag -}} - - {% endfor %} +
+

+ Tags: + {% for tag in page.tags|sort %} + + {{- tag -}} + + {%- if not loop.last %},{% endif %} + {% endfor %} +

{% endif %} diff --git a/source/blog/tags.html b/source/blog/tags.html index 0adcb598..b2352419 100644 --- a/source/blog/tags.html +++ b/source/blog/tags.html @@ -5,10 +5,27 @@ title: Tags use: - posts_tags --- -

Tags

+

Blog Tags

- +
+ + + + + + + + + {% for tag, posts in data.posts_tags %} + + + + + {% endfor %} + +
TagNumber of posts
+ + {{ tag }} + + {{ posts|length }}
+