diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-31 09:35:31 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-31 09:35:31 +0200 |
| commit | 41df0128d69b344050ef12f2dcd884e635a3299f (patch) | |
| tree | af26f956b70c441675023d2105d1ff215458e6a9 /layouts/partials/title.html | |
| parent | 882af0656327476b523e0d6538b29ae9ad6eda28 (diff) | |
| download | gohugo-theme-ed-41df0128d69b344050ef12f2dcd884e635a3299f.tar.gz | |
Add tagging support
Diffstat (limited to 'layouts/partials/title.html')
| -rw-r--r-- | layouts/partials/title.html | 2 |
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 -}} |
