diff options
author | tdro <tdro@noreply.example.com> | 2024-01-13 20:33:21 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-01-13 20:33:21 -0500 |
commit | eaaff9e2cf95bd05e0554bed2996b3e8252edba7 (patch) | |
tree | 50381535b86f13df060a40400b505a53538ffc4b /themes/default/layouts/partials/head-title.html | |
parent | e3f2fd696060de3d6f70c6eab77bd5d358c82c87 (diff) | |
download | canory-eaaff9e2cf95bd05e0554bed2996b3e8252edba7.tar.gz canory-eaaff9e2cf95bd05e0554bed2996b3e8252edba7.tar.bz2 canory-eaaff9e2cf95bd05e0554bed2996b3e8252edba7.zip |
themes/default/layouts/partials: base -> head
Diffstat (limited to 'themes/default/layouts/partials/head-title.html')
-rw-r--r-- | themes/default/layouts/partials/head-title.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/head-title.html b/themes/default/layouts/partials/head-title.html new file mode 100644 index 0000000..fff4530 --- /dev/null +++ b/themes/default/layouts/partials/head-title.html @@ -0,0 +1,20 @@ +{{- $author := index .Site.Data.authors .Section -}} + +{{- if not (eq .Title $.Site.Title) -}} + {{- with $title := or .Title .Summary -}} + {{ $title }} — + {{ end }} +{{- end -}} + +{{- with $title := $.Site.Title -}} + {{- if (in (slice + "home" + "taxonomy" + "term" + ) $.Page.Kind) + -}} + {{ $title }} + {{- else -}} + {{ $author.title }} + {{- end -}} +{{- end -}} |