71 lines
2.7 KiB
HTML
71 lines
2.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html class="no-js" lang="{{ .Site.Language.Lang }}">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||
|
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
|
||
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
|
||
|
{{- if .Site.Params.opengraph }}
|
||
|
{{ template "_internal/opengraph.html" . }}
|
||
|
{{- end }}
|
||
|
{{- if .Site.Params.schema }}
|
||
|
{{ template "_internal/schema.html" . }}
|
||
|
{{- end }}
|
||
|
{{- if .Site.Params.twitter_cards }}
|
||
|
{{ template "_internal/twitter_cards.html" . }}
|
||
|
{{- end }}
|
||
|
|
||
|
{{- $googleFontsLink := .Site.Params.googleFontsLink | default "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" }}
|
||
|
{{- if hasPrefix $googleFontsLink "https://fonts.googleapis.com/" }}
|
||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
|
<link rel="dns-prefetch" href="//fonts.googleapis.com">
|
||
|
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||
|
<link rel="stylesheet" {{ printf `href="%s"` $googleFontsLink | safeHTMLAttr }}>
|
||
|
{{- end }}
|
||
|
|
||
|
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
|
||
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||
|
{{ range .Site.Params.customCSS -}}
|
||
|
<link rel="stylesheet" href="{{ . | relURL }}">
|
||
|
{{- end }}
|
||
|
|
||
|
{{- with .OutputFormats.Get "rss" }}
|
||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||
|
{{- end }}
|
||
|
|
||
|
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
|
||
|
{{- if not .Site.IsServer }}
|
||
|
{{- if hasPrefix .Site.GoogleAnalytics "G-" }}
|
||
|
{{ template "_internal/google_analytics.html" . }}
|
||
|
{{- else }}
|
||
|
{{ template "_internal/google_analytics_async.html" . }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
</head>
|
||
|
<body class="body">
|
||
|
<div class="container container--outer">
|
||
|
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
||
|
<div class="wrapper flex">
|
||
|
<div class="primary">
|
||
|
{{ block "main" . }}
|
||
|
{{ with .Content }}
|
||
|
<div class="content main__content clearfix">
|
||
|
{{ . }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ block "sidebar" . }}{{ partial "sidebar.html" . }}{{ end }}
|
||
|
</div>
|
||
|
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
|
||
|
</div>
|
||
|
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
|
||
|
{{ range .Site.Params.customJS -}}
|
||
|
<script src="{{ . | relURL }}"></script>
|
||
|
{{- end }}
|
||
|
{{- partial "mathjax.html" . -}}
|
||
|
{{- partial "isso.html" . -}}
|
||
|
</body>
|
||
|
</html>
|