2018-03-01 01:38:59 +00:00
|
|
|
<!DOCTYPE html>
|
2019-04-22 13:27:07 +00:00
|
|
|
<html lang="{{ .Site.Language.Lang }}">
|
2018-03-01 01:38:59 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
|
|
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
|
|
|
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
|
|
|
|
|
2019-01-07 15:26:43 +00:00
|
|
|
{{ template "_internal/twitter_cards.html" . }}
|
2019-03-04 14:43:54 +00:00
|
|
|
{{ template "_internal/opengraph.html" . }}
|
2019-01-07 15:26:43 +00:00
|
|
|
|
2019-03-20 13:33:46 +00:00
|
|
|
{{ if .Permalink }}
|
|
|
|
<base href="{{ .Permalink }}">
|
|
|
|
{{ end }}
|
2018-03-01 01:38:59 +00:00
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
|
2019-03-20 13:33:46 +00:00
|
|
|
{{ if .Permalink }}
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
{{ end }}
|
2018-03-01 01:38:59 +00:00
|
|
|
|
2020-02-20 12:53:09 +00:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7COpen+Sans:600,700%7CSource+Code+Pro:600%7CMaterial+Icons+Outlined" rel="stylesheet">
|
2019-04-27 17:39:19 +00:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
|
2018-03-01 01:38:59 +00:00
|
|
|
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
|
2018-10-13 12:36:01 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
2018-06-18 17:55:42 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ 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 }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ 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 }}
|
2018-10-13 12:36:01 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2019-11-21 13:13:49 +00:00
|
|
|
{{ if or (eq .Site.Params.colorscheme "auto") (eq .Site.Params.colorscheme "dark") }}
|
2018-11-12 11:42:52 +00:00
|
|
|
{{ if .Site.IsServer }}
|
2019-11-21 13:13:49 +00:00
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }}
|
2020-02-02 19:52:12 +00:00
|
|
|
<link id="stylesheet-dark" rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
2018-11-12 11:42:52 +00:00
|
|
|
{{ else }}
|
2019-11-21 13:13:49 +00:00
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }}
|
2018-11-12 11:42:52 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2018-05-14 12:51:23 +00:00
|
|
|
{{ range .Site.Params.custom_css }}
|
2019-05-23 16:59:30 +00:00
|
|
|
<link rel="stylesheet" href="{{ . | relURL }}" />
|
2018-05-14 12:51:23 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2019-05-23 16:59:30 +00:00
|
|
|
{{ range .Site.Params.custom_js }}
|
|
|
|
<script src="{{ . | relURL }}"></script>
|
|
|
|
{{ end }}
|
2020-01-05 15:55:03 +00:00
|
|
|
|
|
|
|
{{ 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 }}
|
|
|
|
{{ end }}
|
|
|
|
|
2018-09-13 19:22:53 +00:00
|
|
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
2018-03-01 01:38:59 +00:00
|
|
|
|
2019-03-07 13:44:08 +00:00
|
|
|
{{ range .AlternativeOutputFormats -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|
2018-03-01 01:38:59 +00:00
|
|
|
|
2019-04-23 13:17:29 +00:00
|
|
|
{{ hugo.Generator }}
|
2018-03-01 01:38:59 +00:00
|
|
|
</head>
|
|
|
|
|
2019-11-21 13:13:49 +00:00
|
|
|
{{ $csClass := "colorscheme-light" }}
|
|
|
|
{{ if eq .Site.Params.colorscheme "dark" }}
|
|
|
|
{{ $csClass = "colorscheme-dark" }}
|
|
|
|
{{ else if eq .Site.Params.colorscheme "auto" }}
|
|
|
|
{{ $csClass = "colorscheme-auto" }}
|
|
|
|
{{ end }}
|
2020-02-19 17:43:27 +00:00
|
|
|
<body class="{{ .Kind | lower }} {{ with .File }}{{ .BaseFileName | lower }}{{ end }} {{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}">
|
2018-03-01 01:38:59 +00:00
|
|
|
<main class="wrapper">
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
{{ block "content" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</main>
|
2018-03-02 20:10:45 +00:00
|
|
|
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
2020-02-02 21:43:27 +00:00
|
|
|
<script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script>
|
2018-03-01 01:38:59 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|