|
|
<!DOCTYPE html>
|
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
<head>
|
|
|
{{ .Hugo.Generator }}
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
|
|
{{ with .Description }}
|
|
|
<meta name="description" content="{{ . }}">
|
|
|
{{ end }}
|
|
|
{{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }}
|
|
|
{{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }}
|
|
|
{{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }}
|
|
|
{{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }}
|
|
|
<meta name="robots" content="noindex">
|
|
|
{{ end }}
|
|
|
{{ partial "meta/name-author" . }}
|
|
|
{{ template "_internal/opengraph.html" . }}
|
|
|
{{ partial "meta/ogimage-maybe" . }}
|
|
|
{{ partial "meta/theme-color" . }}
|
|
|
{{ if eq .Kind "home" }}
|
|
|
{{ partial "site-verification" . }}
|
|
|
{{ end }}
|
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
|
{{ if .RSSLink }}
|
|
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
|
{{ end }}
|
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
{{ if (isset .Params "prev") }}
|
|
|
<link rel="prev" href="{{ .Params.prev }}">
|
|
|
{{ end }}
|
|
|
{{ if (isset .Params "next") }}
|
|
|
<link rel="next" href="{{ .Params.next }}">
|
|
|
{{ end }}
|
|
|
{{ partial "favicon" . }}
|
|
|
{{ partial "critical-vendor.css" }}
|
|
|
{{ partial "critical-theme.css" }}
|
|
|
{{ partial "critical-custom.css" }}
|
|
|
{{ $lazylist := findRE "class=\".*?\\blazyload\\b.*?\"|class=lazyload\b" .Content }}<!-- http://regexr.com/3f9d1 -->
|
|
|
{{ if ge (len $lazylist) 1 }}
|
|
|
<script async src="/js/lazysizes.min.js"></script>
|
|
|
{{ end }}
|
|
|
</head>
|
|
|
{{ $theme_variant := .Site.Params.theme_variant | default "hack dark" }}
|
|
|
<body class="{{ $theme_variant }} main container">
|
|
|
<header>{{ block "header" . }}{{ end }}</header>
|
|
|
<main>{{ block "main" . }}{{ end }}</main>
|
|
|
<footer>{{ block "footer" . }}{{ end }}</footer>
|
|
|
</body>
|
|
|
</html>
|