diff --git a/layouts/404.html b/layouts/404.html index dbc1ff0705..b49b75b3f3 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,13 +4,7 @@ {{- partial "meta.html" . }} - {{- $title := .Title }} - {{- if eq .Site.Data.titles .Title }} - {{- $title = (index .Site.Data.titles .Title).title }} - {{- end }} - {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} - {{- end }} + {{- $title := partial "pageHelper/fullTitle.hugo" (dict "page" . "invert" true) }} {{ $title }} {{- partialCached "favicon.html" . }} diff --git a/layouts/_default/index.json b/layouts/_default/index.json index 17cef41d36..b98d445dae 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -2,17 +2,9 @@ {{- $pages := slice }} {{- range .Site.Pages }} {{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }} - {{- $title := .Title }} - {{- if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} - {{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (default (humanize .Data.Term | strings.Title) .Title) }} - {{- end }} {{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) - "title" $title + "title" (partial "pageHelper/title.hugo" (dict "page" .)) "tags" .Params.tags "breadcrumb" (trim ((partial "breadcrumbs.html" (dict "page" . "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ") "description" .Description diff --git a/layouts/_default/index.search.js b/layouts/_default/index.search.js index 3b8d8a35c5..c0c40428d6 100644 --- a/layouts/_default/index.search.js +++ b/layouts/_default/index.search.js @@ -2,17 +2,9 @@ {{- $pages := slice }} {{- range .Site.Pages }} {{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }} - {{- $title := .Title }} - {{- if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} - {{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (default (humanize .Data.Term | strings.Title) .Title) }} - {{- end }} {{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) - "title" $title + "title" (partial "pageHelper/title.hugo" (dict "page" .)) "tags" .Params.tags "breadcrumb" (trim ((partial "breadcrumbs.html" (dict "page" . "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ") "description" .Description diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 960fcb08b6..fb78f45a45 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -5,7 +5,7 @@ {{- $page := . }} -{{- $title := default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} +{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}

{{ $title }}

{{- .Content }} {{- $lastCapital := "" }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 05adc8f2e2..e7186da6b9 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -5,9 +5,7 @@ {{- $page := . }} -{{- $taxonomy_page := .Site.GetPage .Data.Plural }} -{{- $title := default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} -{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (default (humanize .Data.Term | strings.Title) .Title) }} +{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}

{{ $title }}

{{- .Content }} {{- $lastCapital := "" }} diff --git a/layouts/partials/body.searchpage.html b/layouts/partials/body.searchpage.html index 5c4667d50f..1c8da6fbea 100644 --- a/layouts/partials/body.searchpage.html +++ b/layouts/partials/body.searchpage.html @@ -1,5 +1,5 @@ {{- $page := .page }} -{{- $title := T "Search" }} +{{- $title := partial "pageHelper/title.hugo" (dict "page" .page) }}
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 4e097f6253..b88e818229 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -31,17 +31,7 @@ {{- range $i, $e := $breadcrumbReversed }} {{- $to := $e }} {{- $depth = add $depth 1 }} - {{- $title := or $to.Params.menuTitle $to.LinkTitle $to.Title }} - {{- if eq $to.Kind "taxonomy" }} - {{- $title = default (default $to.Data.Plural (i18n $to.Data.Plural)) $to.Params.Title }} - {{- else if eq $to.Kind "term" }} - {{- $taxonomy_page := $to.Site.GetPage $to.Data.Plural }} - {{- $title = default (default $to.Data.Singular (i18n $to.Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" $title (default "::" $to.Site.Params.titleSeparator) (default (humanize $to.Data.Term | strings.Title) $to.Title) }} - {{- end }} - {{- if not $title }} - {{- $title = $to.Site.Title }} - {{- end }} + {{- $title := partial "pageHelper/title.hugo" (dict "page" $to "useLinkTitle" true) }} {{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }} {{- $isPage := eq $url $pageurl }} {{- $isLast := eq $url $lasturl }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 61233e2bc6..cf5fe987bb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,22 +16,7 @@ {{- partial "meta.html" . }} {{- $page := . }} {{- $link := "" }} - {{- $title := .Title }} - {{- if eq $outputFormat "searchpage" }} - {{- $title = T "Search" }} - {{- else if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} - {{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" (default (humanize .Data.Term | strings.Title) .Title) (default "::" .Site.Params.titleSeparator) $title }} - {{- end }} - {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} - {{- end }} - {{- if .Params.menuTitle }} - {{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $page.File.Filename }} - {{- end }} + {{- $title := partial "pageHelper/fullTitle.hugo" (dict "page" . "invert" true "format" $format "outputFormat" $outputFormat) }} {{ $title }} {{- if .IsTranslated -}} diff --git a/layouts/partials/heading.html b/layouts/partials/heading.html index 097c2ca41d..807d346bf6 100644 --- a/layouts/partials/heading.html +++ b/layouts/partials/heading.html @@ -1 +1,2 @@ -

{{ .Title }}

\ No newline at end of file +{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} +

{{ $title }}

\ No newline at end of file diff --git a/layouts/partials/initial.html b/layouts/partials/initial.html index edeef94335..559492c675 100644 --- a/layouts/partials/initial.html +++ b/layouts/partials/initial.html @@ -1,5 +1,6 @@ -{{- if not .Title }} - {{- $title := .Site.Title }} +{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} +{{- if not $title }} + {{- $title := site.Title }}

{{ $title }}

{{- end }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 67172845ed..b69a70d8a4 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -4,26 +4,13 @@ {{- $basename := "index" }} {{- if eq $outputFormat "searchpage" }} {{- $basename = partial "BaseName.hugo" $format.RelPermalink }} -{{- end }} -{{- $title := .Title }} -{{- if eq $outputFormat "searchpage" }} - {{- $title = T "Search" }} -{{- else if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} -{{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" (default (humanize .Data.Term | strings.Title) .Title) (default "::" .Site.Params.titleSeparator) $title }} -{{- end }} -{{- if and $title .Site.Title (not (eq $title .Site.Title)) }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} {{- end }} {{- with or site.Title site.Params.title | plainify }} {{- end }} - + {{- with or .Description .Summary site.Params.description | plainify }} @@ -36,20 +23,7 @@ {{- if .IsPage }} {{- with .FirstSection }} - {{- $title := .Title }} - {{- if eq $outputFormat "searchpage" }} - {{- $title = T "Search" }} - {{- else if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} - {{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" (default (humanize .Data.Term | strings.Title) .Title) (default "::" .Site.Params.titleSeparator) $title }} - {{- end }} - {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} - {{- end }} - + {{- end }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" }} {{- with .PublishDate }} diff --git a/layouts/partials/page-meta.hugo b/layouts/partials/page-meta.hugo index 9e5badf7c4..1dea5e9068 100644 --- a/layouts/partials/page-meta.hugo +++ b/layouts/partials/page-meta.hugo @@ -14,6 +14,7 @@ {{- $currentNode.Store.Set $has true }} {{- end }} {{- end }} + {{- template "relearn-structure" dict "node" .Site.Home "currentnode" $currentNode "hiddenstem" false "hiddencurrent" false }} {{- define "relearn-structure" }} {{- $currentNode := .currentnode }} @@ -24,7 +25,7 @@ {{- $isChildren := eq $currentNode .node.Parent }} {{- if $isSelf }} {{- $currentNode.Scratch.Set "relearnIsSelfFound" true }} - {{- end}} + {{- end }} {{- $isSelfFound := eq ($currentNode.Scratch.Get "relearnIsSelfFound") true }} {{- $isPreSelf := and (not $isSelfFound) (not $isSelf) }} {{- $isPostSelf := and ($isSelfFound) (not $isSelf) }} @@ -36,19 +37,21 @@ {{- if $isSelf }} {{- $currentNode.Scratch.Set "relearnIsHiddenNode" $hidden_node }} {{- $currentNode.Scratch.Set "relearnIsHiddenStem" $hidden_stem }} - {{- end}} + {{- end }} {{- $currentNode.Scratch.SetInMap "relearnIsHiddenFrom" .node.RelPermalink $hidden_current_stem }} - {{- if not $hidden_from_current }} - {{- if and $isPreSelf .node.RelPermalink }} - {{- $currentNode.Scratch.Set "relearnPrevPage" .node }} - {{- else if and $isPostSelf .node.RelPermalink (eq ($currentNode.Scratch.Get "relearnNextPage") nil) }} - {{- $currentNode.Scratch.Set "relearnNextPage" .node }} - {{- end}} + {{- if or (eq $currentNode.Kind "home") (eq $currentNode.Kind "section") (eq $currentNode.Kind "page") }} + {{- if not $hidden_from_current }} + {{- if and $isPreSelf .node.RelPermalink }} + {{- $currentNode.Scratch.Set "relearnPrevPage" .node }} + {{- else if and $isPostSelf .node.RelPermalink (eq ($currentNode.Scratch.Get "relearnNextPage") nil) }} + {{- $currentNode.Scratch.Set "relearnNextPage" .node }} + {{- end }} + {{- end }} {{- end }} {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" .node "hidden" true) }} {{- range $pages }} {{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current }} - {{- end}} + {{- end }} {{- end }} \ No newline at end of file diff --git a/layouts/partials/pageHelper/fullTitle.hugo b/layouts/partials/pageHelper/fullTitle.hugo new file mode 100644 index 0000000000..38f573f1bd --- /dev/null +++ b/layouts/partials/pageHelper/fullTitle.hugo @@ -0,0 +1,11 @@ +{{- $title := partial "pageHelper/title.hugo" . }} +{{- with .page }} + {{- if and $title site.Title (not (eq $title site.Title)) }} + {{- if $.invert }} + {{- $title = printf "%s %s %s" $title (default "::" site.Params.titleSeparator) site.Title }} + {{- else }} + {{- $title = printf "%s %s %s" site.Title (default "::" site.Params.titleSeparator) $title }} + {{- end }} + {{- end }} +{{- end }} +{{- return $title }} \ No newline at end of file diff --git a/layouts/partials/pageHelper/title.hugo b/layouts/partials/pageHelper/title.hugo new file mode 100644 index 0000000000..d3d1ab767f --- /dev/null +++ b/layouts/partials/pageHelper/title.hugo @@ -0,0 +1,32 @@ +{{- $title := "" }} +{{- with .page }} + {{- if .Params.menuTitle }} + {{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $.File.Filename }} + {{- end }} + {{- $format := $.format | default (partial "get-format.hugo" .) }} + {{- $outputFormat := $.outputFormat | default (partial "output-format.hugo" (dict "page" . "format" $format)) }} + {{- $title = .Title }} + {{- if $.useLinkTitle }} + {{- $title = or $.page.Params.menuTitle $.page.LinkTitle $title }} + {{- end }} + + {{- if eq $outputFormat "searchpage" }} + {{- $title = T "Search" }} + {{- else if eq .Kind "home" }} + {{- $title = or $title site.Title }} + {{- else if eq .Kind "taxonomy" }} + {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} + {{- else if eq .Kind "term" }} + {{- $taxonomy_page := .Site.GetPage .Data.Plural }} + {{- $taxonomy_title := default (default $taxonomy_page.Data.Singular (i18n $taxonomy_page.Data.Singular)) $taxonomy_page.Params.SingularTitle }} + {{- $term_title := default (humanize .Data.Term | strings.Title) .Title }} + {{- if $.useLinkTitle }} + {{- $title = printf "%s" $term_title }} + {{- else if $.invert }} + {{- $title = printf "%s %s %s" $term_title (default "::" .Site.Params.titleSeparator) $taxonomy_title }} + {{- else }} + {{- $title = printf "%s %s %s" $taxonomy_title (default "::" .Site.Params.titleSeparator) $term_title }} + {{- end }} + {{- end }} +{{- end }} +{{- return $title }} \ No newline at end of file diff --git a/layouts/partials/topbar/button/next.html b/layouts/partials/topbar/button/next.html index 276290588e..c61275c876 100644 --- a/layouts/partials/topbar/button/next.html +++ b/layouts/partials/topbar/button/next.html @@ -5,36 +5,25 @@ {{- $format := partial "get-format.hugo" . }} {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} {{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }} - {{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }} + {{- if $showPrevNext }} {{- $endarrow := "🡒" }} {{- if eq (.Language.LanguageDirection | default (T "Reading-direction") | default "ltr") "rtl" }} {{- $endarrow = "🡐" }} {{- end }} - {{- $next := "" }} - {{- $nextTitle := .Title }} - {{- if eq .Page.Kind "taxonomy" }} - {{- /* go to first term page */}} - {{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }} - {{- $next = (index $pages 0).Page }} - {{- if $next }} - {{- $taxonomy_page := .Page }} - {{- $nextTitle = default (default $next.Data.Singular (i18n $next.Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $nextTitle = printf "%s %s %s" $nextTitle (default "::" $next.Site.Params.titleSeparator) (default (humanize $next.Data.Term | strings.Title) $next.Title) }} - {{- end }} + {{- $next := .Scratch.Get "relearnNextPage" }} + {{- if eq $outputFormat "searchpage" }} + {{- $next = "" }} {{- else if eq .Page.Kind "term" }} {{- /* go to next term page */}} {{- $taxonomy_page := .Site.GetPage .Data.Plural }} {{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }} {{- $next = partial "partials/pageHelper/next.html" (dict "collection" $pages "item" .) }} - {{- if $next }} - {{- $nextTitle = default (default $next.Data.Singular (i18n $next.Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $nextTitle = printf "%s %s %s" $nextTitle (default "::" $next.Site.Params.titleSeparator) (default (humanize $next.Data.Term | strings.Title) $next.Title) }} - {{- end }} - {{- else if or (ne $outputFormat "html") (not (.Scratch.Get "relearnNextPage")) }} - {{- else }} - {{- $next = .Scratch.Get "relearnNextPage" }} - {{- $nextTitle = $next.Title }} + {{- else if eq .Page.Kind "taxonomy" }} + {{- /* go to first term page */}} + {{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" . . }} + {{- $next = (index $pages 0).Page }} {{- end }} + {{- $nextTitle := partial "pageHelper/title.hugo" (dict "page" $next "format" $format "outputFormat" $outputFormat) }} {{- partial "topbar/func/button.html" (dict "page" . "class" "topbar-button-next" diff --git a/layouts/partials/topbar/button/prev.html b/layouts/partials/topbar/button/prev.html index 3e33f6d269..3c38ed73fd 100644 --- a/layouts/partials/topbar/button/prev.html +++ b/layouts/partials/topbar/button/prev.html @@ -5,36 +5,23 @@ {{- $format := partial "get-format.hugo" . }} {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} {{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }} - {{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }} + {{- if $showPrevNext }} {{- $startarrow := "🡐" }} {{- if eq (.Language.LanguageDirection | default (T "Reading-direction") | default "ltr") "rtl" }} {{- $startarrow = "🡒" }} {{- end }} - {{- $prev := "" }} - {{- $prevTitle := .Title }} - {{- if and (eq .RelPermalink .Site.Home.RelPermalink) (eq $outputFormat "html") }} - {{- else if eq .Page.Kind "taxonomy" }} - {{- $prev = .Site.Home }} - {{- $prevTitle = $prev.Title }} + {{- $prev := .Scratch.Get "relearnPrevPage" | default .Site.Home }} + {{- if eq $outputFormat "searchpage" }} + {{- $outputFormat = "html" }} + {{- else if eq .Page.Kind "home" }} + {{- $prev = "" }} {{- else if eq .Page.Kind "term" }} {{- /* go to previous term page or taxonomy page if it is the first term */}} {{- $taxonomy_page := .Site.GetPage .Data.Plural }} {{- $pages := partialCached "partials/pageHelper/taxonomyPages.html" $taxonomy_page $taxonomy_page }} - {{- $prev = partial "partials/pageHelper/prev.html" (dict "collection" $pages "item" .) }} - {{- if not $prev }} - {{- $prev = $taxonomy_page }} - {{- $prevTitle = default (default $prev.Data.Plural (i18n $prev.Data.Plural)) $prev.Params.Title }} - {{- else }} - {{- $prevTitle = default (default $prev.Data.Singular (i18n $prev.Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $prevTitle = printf "%s %s %s" $prevTitle (default "::" $prev.Site.Params.titleSeparator) (default (humanize $prev.Data.Term | strings.Title) $prev.Title) }} - {{- end }} - {{- else if or (ne $outputFormat "html") (not (.Scratch.Get "relearnPrevPage")) }} - {{- $prev = .Site.Home }} - {{- $prevTitle = $prev.Title }} - {{- else }} - {{- $prev = .Scratch.Get "relearnPrevPage" }} - {{- $prevTitle = $prev.Title }} - {{- end}} + {{- $prev = partial "partials/pageHelper/prev.html" (dict "collection" $pages "item" .) | default $taxonomy_page }} + {{- end }} + {{- $prevTitle := partial "pageHelper/title.hugo" (dict "page" $prev "format" $format "outputFormat" $outputFormat) }} {{- partial "topbar/func/button.html" (dict "page" . "class" "topbar-button-prev" diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html index 8f543aa8aa..fb286db0f0 100644 --- a/layouts/partials/twitter_cards.html +++ b/layouts/partials/twitter_cards.html @@ -1,20 +1,4 @@ {{- /* based on Hugo 0.125.0 _internal/twitter_cardss.html but with modified title */}} -{{- $format := partial "get-format.hugo" . }} -{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} -{{- $title := .Title }} -{{- if eq $outputFormat "searchpage" }} - {{- $title = T "Search" }} -{{- else if eq .Kind "taxonomy" }} - {{- $title = default (default .Data.Plural (i18n .Data.Plural)) .Params.Title }} -{{- else if eq .Kind "term" }} - {{- $taxonomy_page := .Site.GetPage .Data.Plural }} - {{- $title = default (default .Data.Singular (i18n .Data.Singular)) $taxonomy_page.Params.SingularTitle }} - {{- $title = printf "%s %s %s" (default (humanize .Data.Term | strings.Title) .Title) (default "::" .Site.Params.titleSeparator) $title }} -{{- end }} -{{- if and $title .Site.Title (not (eq $title .Site.Title)) }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} -{{- end }} - {{- $images := partial "_funcs/get-page-images" . }} {{- with index $images 0 }} @@ -22,7 +6,7 @@ {{- else }} {{- end }} - + {{- $twitterSite := "" }}