template installiert
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<head>
|
||||
<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>{{ if not .IsHome }}{{with .Title }}{{ . }} · {{ end }}{{ end }}{{ .Site.Title }}</title>
|
||||
{{ $description := .Description | default .Site.Params.description }}
|
||||
{{ if eq .Kind "term" }}{{ $description = .Description | default (printf "Posts about %s by %s." .Title .Site.Title) }}{{ end }}
|
||||
<meta name="description" content="{{ $description | plainify | truncate 160 }}" />
|
||||
{{ with site.Params.author.name }}<meta name="author" content="{{ . }}" />{{ end }}
|
||||
{{ $canonical := .Permalink }}
|
||||
{{ if in (slice "home" "section" "taxonomy" "term") .Kind }}{{ $canonical = .Paginator.URL | absURL }}{{ end }}
|
||||
<link rel="canonical" href="{{ $canonical }}">
|
||||
{{ if (fileExists "static/apple-touch-icon.png") -}}
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
|
||||
{{ end -}}
|
||||
{{ if (fileExists "static/favicon-32x32.png") -}}
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
|
||||
{{ end -}}
|
||||
{{ if (fileExists "static/favicon-16x16.png") -}}
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
|
||||
{{ end -}}
|
||||
{{ if (fileExists "static/site.webmanifest") -}}
|
||||
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}">
|
||||
{{ end -}}
|
||||
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
|
||||
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="{{ site.Params.appearance.maskIconColor | default "#22201d" }}">
|
||||
{{ end -}}
|
||||
{{ partial "opengraph.html" . }}
|
||||
{{ partial "twitter_cards.html" . }}
|
||||
{{ partial "structured-data.html" . }}
|
||||
{{ if (templates.Exists "_partials/meta-tags.html") -}}
|
||||
{{ partial "meta-tags.html" . }}
|
||||
{{ end -}}
|
||||
{{ with resources.Get "css/katex.min.css" -}}
|
||||
{{ $katexStyle := . | fingerprint }}
|
||||
<link href="{{ $katexStyle.RelPermalink }}" rel="stylesheet" integrity="{{ $katexStyle.Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end -}}
|
||||
<meta name="theme-color" content="#f7f3eb" media="(prefers-color-scheme: light)">
|
||||
<meta name="theme-color" content="#20201d" media="(prefers-color-scheme: dark)">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
|
||||
{{ $fontStyle := resources.Get "css/source-sans-3.css" }}
|
||||
{{ $mainStyle := resources.Get "css/style.css" }}
|
||||
{{ $overrideStyle := resources.Get "css/override.css" }}
|
||||
{{ $style := slice $normalizeStyle $fontStyle $mainStyle $overrideStyle | resources.Concat "css/noesis.css" | minify | fingerprint }}
|
||||
<link href="{{ $style.RelPermalink }}" rel="stylesheet" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
{{ partial "google_analytics.html" . }}
|
||||
{{ $appearance := .Site.Params.appearance | default dict }}
|
||||
{{ with $appearance.backgroundimage -}}
|
||||
{{ with resources.GetMatch . -}}
|
||||
<style>
|
||||
body {
|
||||
background: #ecedef url("{{ .RelPermalink | safeCSS }}") repeat;
|
||||
}
|
||||
</style>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</head>
|
||||
Reference in New Issue
Block a user