diff options
author | Jeremy Bise <jeremy.bise@thosegeeks.com> | 2019-04-16 16:37:10 +0300 |
---|---|---|
committer | Jeremy Bise <jeremy.bise@thosegeeks.com> | 2019-04-16 16:37:10 +0300 |
commit | c019a51e93b8973039267ac117f77bb1792b42a5 (patch) | |
tree | 8e6804d090d3bd8ea5777f467110bafd5acfde23 | |
parent | 668325fc777750917c38a2dda1dfd6e265a92cfa (diff) |
tags now showing
-rw-r--r-- | layouts/partials/entry-meta.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/layouts/partials/entry-meta.html b/layouts/partials/entry-meta.html index 4c1d27b..95287ca 100644 --- a/layouts/partials/entry-meta.html +++ b/layouts/partials/entry-meta.html @@ -2,4 +2,18 @@ {{ partial "icons/ui/watch" }} {{ $dateFormat := $.Site.Params.dateFormat | default "January 2, 2006" }} <a href="{{ .RelPermalink }}">{{ .PublishDate.Format $dateFormat }}</a> -</span>
\ No newline at end of file +</span> + +{{ $tags := slice }} +{{ with .Params.tags }} +<span class="cat-links"> + {{ partial "icons/ui/tag" }} + <span class="screen-reader-text">Posted in</span> + {{ range . }} + {{ $href := print ("tags/" | absLangURL) (. | urlize) "/" }} + {{ $element := printf "<a href=\"%s\" rel=\"category tag\">%s</a>" $href . }} + {{ $tags = $tags | append $element }} + {{ end }} + {{ delimit $tags ", " }} +</span> +{{ end }}
\ No newline at end of file |