diff options
author | tdro <tdro@noreply.example.com> | 2022-07-22 00:36:28 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-22 00:36:28 -0400 |
commit | ed919681f324ed070445cfae8f1dd662b09f81b8 (patch) | |
tree | 7f0af59b4021907b24f77e9966e7a7145dc227a6 /themes/default/layouts/partials/base-title.html | |
parent | 19a6a9bef26c6c41f3f9b6f3ceda375a8a045a30 (diff) | |
download | canory-ed919681f324ed070445cfae8f1dd662b09f81b8.tar.gz canory-ed919681f324ed070445cfae8f1dd662b09f81b8.tar.bz2 canory-ed919681f324ed070445cfae8f1dd662b09f81b8.zip |
themes/default/layouts: Name spacing and template clean up
Diffstat (limited to 'themes/default/layouts/partials/base-title.html')
-rw-r--r-- | themes/default/layouts/partials/base-title.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/base-title.html b/themes/default/layouts/partials/base-title.html new file mode 100644 index 0000000..afa17fa --- /dev/null +++ b/themes/default/layouts/partials/base-title.html @@ -0,0 +1,15 @@ +{{ $author := index .Site.Data ((or .Params.author .Site.Author.default.title) | default "default") }} + +{{- if not (eq .Title $.Site.Title) -}} + {{- with or .Title .Summary -}} + {{ . }} — + {{ end }} +{{- end -}} + +{{- with $.Site.Title -}} + {{ if $.IsHome -}} + {{ . }} + {{- else -}} + {{ $author.blogtitle }} + {{- end -}} +{{- end -}} |