56 lines
2.9 KiB
HTML
56 lines
2.9 KiB
HTML
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<!-- Title -->
|
|
<title>{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}</title>
|
|
<!-- Meta -->
|
|
{{- if in site.Params.mainSections .Type }}
|
|
<meta name="description" content="{{ .Summary }}">
|
|
<meta name="keywords" content={{ delimit .Keywords ", " }} />
|
|
{{- else }}
|
|
<meta name="description"
|
|
content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }} - {{ .Site.Title }}{{end}}">
|
|
{{- end }}
|
|
<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
{{- if .Site.Params.analytics.google.SiteVerificationTag }}
|
|
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
|
|
{{- end}}
|
|
<!-- Styles -->
|
|
{{- $anoldhope := resources.Get "css/an-old-hope.min.css" }}
|
|
{{- $theme := resources.Get "css/theme-vars.css" }}
|
|
{{- $reset := resources.Get "css/reset.css" }}
|
|
{{- $header := resources.Get "css/header.css" }}
|
|
{{- $main := resources.Get "css/main.css" }}
|
|
{{- $postentry := resources.Get "css/post-entry.css" }}
|
|
{{- $postsingle := resources.Get "css/post-single.css" }}
|
|
{{- $terms := resources.Get "css/terms.css" }}
|
|
{{- $archive := resources.Get "css/archive.css" }}
|
|
{{- $footer := resources.Get "css/footer.css" }}
|
|
{{- $404 := resources.Get "css/404.css" }}
|
|
{{- $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" }}
|
|
{{- $stylesheet := slice $anoldhope $style | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}}
|
|
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
|
|
as="style">
|
|
{{- if (and (.Site.Params.profileMode.enabled) (.IsHome)) }}
|
|
{{- $profileMode := slice (resources.Get "css/profile-mode.css") | resources.Concat "assets/css/profile-mode.css" | minify | fingerprint }}
|
|
<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
|
|
as="style">
|
|
{{- end -}}
|
|
<!-- Favicons -->
|
|
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
|
|
<link rel="icon" href="{{ .Site.Params.assets.favicon | default "favicon.ico" | absURL }}">
|
|
<!-- Generator -->
|
|
{{- hugo.Generator }}
|
|
<!-- RSS -->
|
|
{{- range .AlternativeOutputFormats -}}
|
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
|
{{ end -}}
|
|
<!-- Misc -->
|
|
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
|
{{- template "_internal/google_analytics_async.html" . }}
|
|
{{- template "partials/templates/opengraph.html" . }}
|
|
{{- template "partials/templates/twitter_cards.html" . }}
|
|
{{- template "partials/templates/schema_json.html" . }}
|
|
{{- end }}
|