Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/entry-meta.html')
-rw-r--r--layouts/partials/entry-meta.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/layouts/partials/entry-meta.html b/layouts/partials/entry-meta.html
index 95287ca..d666223 100644
--- a/layouts/partials/entry-meta.html
+++ b/layouts/partials/entry-meta.html
@@ -6,7 +6,7 @@
{{ $tags := slice }}
{{ with .Params.tags }}
-<span class="cat-links">
+<span class="tags-links">
{{ partial "icons/ui/tag" }}
<span class="screen-reader-text">Posted in</span>
{{ range . }}
@@ -16,4 +16,18 @@
{{ end }}
{{ delimit $tags ", " }}
</span>
+{{ end }}
+
+{{ $categories := slice }}
+{{ with .Params.categories }}
+<span class="cat-links">
+ {{ partial "icons/ui/archive" }}
+ <span class="screen-reader-text">Posted in</span>
+ {{ range . }}
+ {{ $href := print ("categories/" | absLangURL) (. | urlize) "/" }}
+ {{ $element := printf "<a href=\"%s\" rel=\"category tag\">%s</a>" $href . }}
+ {{ $categories = $categories | append $element }}
+ {{ end }}
+ {{ delimit $categories ", " }}
+</span>
{{ end }} \ No newline at end of file