summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 22:52:51 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 22:52:51 +0200
commit6877d06e3d2be9dc533b1437bcd21d8efff5ce44 (patch)
tree3b9eb06736c0fd79ab027a0e5ed523734fa99097 /layouts/partials
parent82d9181cb40cba312ea824d91d1d358c3b657190 (diff)
downloadgohugo-theme-ed-6877d06e3d2be9dc533b1437bcd21d8efff5ce44.tar.gz
Improve title check
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/title.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/title.html b/layouts/partials/title.html
index a767901..76cfb2f 100644
--- a/layouts/partials/title.html
+++ b/layouts/partials/title.html
@@ -1,4 +1,4 @@
-{{- if .IsHome -}}
+{{- if or .IsHome (eq .Title site.Title) -}}
{{- site.Title -}}
{{- else -}}
{{- with .Title }}{{ . }} - {{ end }}{{ site.Title -}}