03ee3369e1
* fix: title does not show pagination data This is caused by partialCached. It turns out that the `.RelPermalink` is the same for all pages generated by the paginator, so they will show the same title as the first page. closes https://github.com/CaiJimmy/hugo-theme-stack/issues/941 * doc(exampleSite): set paginate to 3 to force pagination
27 lines
877 B
HTML
27 lines
877 B
HTML
<meta charset='utf-8'>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
|
|
{{- $description := partialCached "data/description" . .RelPermalink -}}
|
|
<meta name='description' content='{{ $description }}'>
|
|
{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}
|
|
|
|
{{- $title := partial "data/title" . -}}
|
|
<title>{{ $title }}</title>
|
|
|
|
<link rel='canonical' href='{{ .Permalink }}'>
|
|
|
|
{{- partial "head/style.html" . -}}
|
|
{{- partial "head/script.html" . -}}
|
|
{{- partial "head/opengraph/include.html" . -}}
|
|
|
|
{{- range .AlternativeOutputFormats -}}
|
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
|
{{- end -}}
|
|
|
|
{{ with .Site.Params.favicon }}
|
|
<link rel="shortcut icon" href="{{ . }}" />
|
|
{{ end }}
|
|
|
|
{{- template "_internal/google_analytics.html" . -}}
|
|
{{- partial "head/custom.html" . -}}
|