From 4d72cacd23ff1432da02c22e5846874059374eec Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 11 Jun 2018 08:17:20 -0500 Subject: [PATCH] Use url filter for proper urls on github pages --- _includes/postslist.njk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_includes/postslist.njk b/_includes/postslist.njk index 8c7ec22..4a49021 100644 --- a/_includes/postslist.njk +++ b/_includes/postslist.njk @@ -3,7 +3,12 @@
  • {{ post.data.title }} {{ post.date | readableDate }} - {% for tag in post.data.tags %}{% if tag != "post" and metadata.tagPages.indexOf(tag) > -1 %}{{ tag }}{% endif %}{% endfor %} + {% for tag in post.data.tags %} + {%- if tag != "post" and metadata.tagPages.indexOf(tag) > -1 -%} + {% set tagUrl %}/tags/{{ tag }}/{% endset %} + {{ tag }} + {%- endif -%} + {% endfor %}
  • {% endfor %}