summaryrefslogtreecommitdiffstats
path: root/layouts/partials/title.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 09:35:31 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 09:35:31 +0200
commit41df0128d69b344050ef12f2dcd884e635a3299f (patch)
treeaf26f956b70c441675023d2105d1ff215458e6a9 /layouts/partials/title.html
parent882af0656327476b523e0d6538b29ae9ad6eda28 (diff)
downloadgohugo-theme-ed-41df0128d69b344050ef12f2dcd884e635a3299f.tar.gz
Add tagging support
Diffstat (limited to 'layouts/partials/title.html')
-rw-r--r--layouts/partials/title.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/title.html b/layouts/partials/title.html
index 76cfb2f..b3754ba 100644
--- a/layouts/partials/title.html
+++ b/layouts/partials/title.html
@@ -1,5 +1,7 @@
{{- if or .IsHome (eq .Title site.Title) -}}
{{- site.Title -}}
+{{- else if and (eq .Kind "term") (eq .Data.Singular "tag") -}}
+ {{- with .Title }}{{ i18n "publications_tagged" . }} - {{ end }}{{ site.Title -}}
{{- else -}}
{{- with .Title }}{{ . }} - {{ end }}{{ site.Title -}}
{{- end -}}