diff options
-rw-r--r-- | layouts/indexes/tag.html | 6 | ||||
-rw-r--r-- | layouts/partials/post_footer.html | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/layouts/indexes/tag.html b/layouts/indexes/tag.html index d3ee56d..e688005 100644 --- a/layouts/indexes/tag.html +++ b/layouts/indexes/tag.html @@ -27,13 +27,13 @@ </time> <footer> <span class="categories"> <!-- show categories and tags --> - posted in: {{ if isset .Params "categories" }} + posted in: {{ range .Params.categories }} <a class="category" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }} - {{ end }} </br> - tags: + {{ end }} {{ if isset .Params "tags" }} + tags: {{ range .Params.tags }} <a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }} {{ end }} </span> diff --git a/layouts/partials/post_footer.html b/layouts/partials/post_footer.html index 261ed5f..cfa4d48 100644 --- a/layouts/partials/post_footer.html +++ b/layouts/partials/post_footer.html @@ -5,12 +5,12 @@ <span class="byline author vcard">Posted by <span class="fn">{{ with .Site.Params.author }}{{ . }}{{ end }}</span></span> <!-- can't put the .Date.Format inside the datetime attribute because of double quotes, so it's outside --> <time>{{ .Date.Format "Jan 2, 2006" }}</time> - <span class="categories"> - Tags: - {{ if isset .Params "tags" }} + {{ if isset .Params "tags" }} + <span class="categories"> + Tags: <!-- need to convert the tags to lower for the URLs to work --> {{ range .Params.tags }}<a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a> {{ end }} - {{ end }} + {{ end }} </span> </p> |