summaryrefslogtreecommitdiffstats
path: root/layouts/partials/title.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 21:30:45 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-22 21:30:45 +0200
commit344b004dd94c60df35663de8c75ae0697b3d95db (patch)
tree9868acf9e27aa1aeab37583a997cf03ef8a95f14 /layouts/partials/title.html
parent4f3e41d2c9d78ebbab00cbba76fa3889420bb0aa (diff)
downloadgohugo-theme-ed-344b004dd94c60df35663de8c75ae0697b3d95db.tar.gz
Rework setting title logic
Diffstat (limited to 'layouts/partials/title.html')
-rw-r--r--layouts/partials/title.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/title.html b/layouts/partials/title.html
new file mode 100644
index 0000000..a767901
--- /dev/null
+++ b/layouts/partials/title.html
@@ -0,0 +1,5 @@
+{{- if .IsHome -}}
+ {{- site.Title -}}
+{{- else -}}
+ {{- with .Title }}{{ . }} - {{ end }}{{ site.Title -}}
+{{- end -}}