mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
While, yes the Content-Type meta will be over written by the server, it is ideal to just have it for the people who dont have their server configured properly. One less thing for them to worry about.
28 lines
945 B
HTML
28 lines
945 B
HTML
<meta charset='utf-8'>
|
|
<meta http-equiv="Content-Type" content="text/html; 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" . -}}
|