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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiushi Pan <qiu.gits@gmail.com>2018-11-30 19:26:35 +0300
committerQiushi Pan <qiu.gits@gmail.com>2018-11-30 19:26:35 +0300
commitdb9c990144b03ef1df3b614ddc18f9fb1160b51a (patch)
tree0e1827340a48851896566dcc7428aff964b07b24 /layouts
parent09bbcc680f013c36a19388e4d4868630989cdb6c (diff)
Add: link to taxonomies
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 4e3b0c4..cd929f4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -22,13 +22,19 @@
<div class="Subhead-description">
<!-- categories -->
{{ with .Params.Categories }}{{ range . }}
- <span class="Label Label--gray-darker">{{ . }}</span>
+ <a href='{{ "/categories/" | relLangURL }}{{ . | urlize }}' class="muted-link">
+ <span class="Label Label--gray-darker">
+ {{ . }}
+ </span>
+ </a>
{{ end }}{{ end }}
<!-- tags -->
{{ with .Params.Tags }}{{ range . }}
+ <a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}' class="muted-link">
<span class="Label Label--gray">{{ . }}</span>
{{ end }}{{ end }}
<span>{{ .Date.Format "2006-01-01" }}</span>
+ </a>
</div>
</div>
<div>