diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 21:30:45 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 21:30:45 +0200 |
| commit | 344b004dd94c60df35663de8c75ae0697b3d95db (patch) | |
| tree | 9868acf9e27aa1aeab37583a997cf03ef8a95f14 /layouts/partials/title.html | |
| parent | 4f3e41d2c9d78ebbab00cbba76fa3889420bb0aa (diff) | |
| download | gohugo-theme-ed-344b004dd94c60df35663de8c75ae0697b3d95db.tar.gz | |
Rework setting title logic
Diffstat (limited to 'layouts/partials/title.html')
| -rw-r--r-- | layouts/partials/title.html | 5 |
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 -}} |
