2020-07-16 22:43:30 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ .Site.Language.Lang }}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
|
|
|
|
|
|
|
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
|
|
|
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
|
|
|
|
<meta name="keywords" content="{{ (delimit .Keywords ",") | default .Site.Params.keywords }}">
|
|
|
|
|
|
|
|
{{ if .Site.Params.enableTwemoji }}
|
|
|
|
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ template "_internal/twitter_cards.html" . }}
|
|
|
|
{{ template "_internal/opengraph.html" . }}
|
|
|
|
|
|
|
|
{{ if .Permalink }}
|
|
|
|
<base href="{{ .Permalink }}">
|
|
|
|
{{ end }}
|
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
|
|
|
|
{{ if .Permalink }}
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700&display=swap" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css" integrity="sha384-Bfad6CLCknfcloXFOyFnlgtENryhrpZCe29RTifKEixXQZ38WheV+i/6YWSzkz3V" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
|
|
|
|
|
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Site.Params.rtl }}
|
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if or (eq .Site.Params.colorscheme "auto") (eq .Site.Params.colorscheme "dark") }}
|
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range .Site.Params.custom_css }}
|
|
|
|
<link rel="stylesheet" href="{{ . | relURL }}" />
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range .Site.Params.custom_scss }}
|
|
|
|
{{/* We don't change the targetPath to because it's transparent to users */}}
|
|
|
|
{{ if $.Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get . | toCSS $cssOpts }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
|
|
|
{{ else }}
|
|
|
|
{{ $styles := resources.Get . | toCSS | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
|
|
{{ end }}
|
2022-05-30 10:50:21 +02:00
|
|
|
{{ end }}
|
2020-07-16 22:43:30 +02:00
|
|
|
|
2022-05-30 10:50:21 +02:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
2022-05-30 10:41:32 +02:00
|
|
|
<meta name="msapplication-TileColor" content="#2b5797">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
2020-07-16 22:43:30 +02:00
|
|
|
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ hugo.Generator }}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
{{ $csClass := "colorscheme-light" }}
|
|
|
|
{{ if eq .Site.Params.colorscheme "dark" }}
|
|
|
|
{{ $csClass = "colorscheme-dark" }}
|
|
|
|
{{ else if eq .Site.Params.colorscheme "auto" }}
|
|
|
|
{{ $csClass = "colorscheme-auto" }}
|
|
|
|
{{ end }}
|
|
|
|
<body class="{{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}"
|
|
|
|
onload="{{ if .Site.Params.enableTwemoji }} twemoji.parse(document.body); {{ end }}"
|
|
|
|
>
|
|
|
|
<main class="wrapper">
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
{{ block "content" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{{ range .Site.Params.custom_js }}
|
|
|
|
<script src="{{ . | relURL }}"></script>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
|
|
|
{{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }}
|
|
|
|
{{- partial "analytics/fathom" . -}}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|