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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Iakunin <yakuninm+github@gmail.com>2021-11-07 00:21:17 +0300
committerMaksim Iakunin <yakuninm+github@gmail.com>2021-11-07 00:21:17 +0300
commitd8e840e0b7b7346910cf315a91d5fe1ac3f9c193 (patch)
tree8a01a58e513918903d778cc992922e102dd502a5
parent837417e19fd831a6ccd8c873febd63e0f4058ae3 (diff)
Fixing wrong categories links below the post (just by analogy with tag links)
-rw-r--r--layouts/partials/post-info.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html
index 197c87a..dc88e35 100644
--- a/layouts/partials/post-info.html
+++ b/layouts/partials/post-info.html
@@ -7,7 +7,7 @@
{{ if .Params.date }}
<div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div>
{{ end }}
-
+
<a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a>
<a href="{{ .Site.BaseURL }}" class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>
@@ -16,7 +16,7 @@
{{ if .Params.categories }}
<ul class="post-categories">
{{ range .Params.categories }}
- <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
+ <li><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}