binario/layouts/_default/baseof.html

68 lines
2.8 KiB
HTML
Raw Normal View History

2018-11-03 14:23:41 +00:00
<!DOCTYPE html>
<html class="no-js" lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="{{ .Site.Params.Manifest.themeColor | default "#1b1b1b" }}">
<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 }}{{ .Description }}{{ end }}">
{{- if .Site.Params.opengraph }}
{{ template "_internal/opengraph.html" . }}
{{- end }}
2020-07-02 20:18:03 +00:00
{{- if .Site.Params.schema }}
{{ template "_internal/schema.html" . }}
{{- end }}
{{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
{{- $cssReboot := resources.Get "css/reboot.css" }}
2019-12-07 20:40:26 +00:00
{{- $cssMain := resources.Get "css/main.css" }}
2019-12-09 14:23:51 +00:00
{{- $cssPrint := resources.Get "css/print.css" }}
{{- $style := slice $cssReboot $cssMain $cssPrint | resources.Concat "css/bundle.css" }}
2019-12-07 20:40:26 +00:00
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{- range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
{{- with .Site.Params.colorTheme }}
<link rel="stylesheet" href="{{ (printf "css/themes/%s.css" .) | relURL }}">
{{- end }}
<link rel="icon" href="{{ "icons/16.png" | relURL }}" sizes="16x16" type="image/png">
<link rel="icon" href="{{ "icons/32.png" | relURL }}" sizes="32x32" type="image/png">
{{- with .OutputFormats.Get "rss" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
{{- with ((.Site.GetPage "home").OutputFormats.Get "manifest") }}
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
{{- end }}
{{- if not .Site.IsServer }}
{{- if hasPrefix .Site.GoogleAnalytics "G-" }}
{{ template "_internal/google_analytics.html" . }}
{{- else }}
{{ template "_internal/google_analytics_async.html" . }}
{{- end }}
{{- end }}
</head>
2020-10-07 20:51:02 +00:00
<body class="body kind-{{ .Kind }}">
2018-11-03 14:23:41 +00:00
{{ partial "header" . }}
2018-11-14 18:34:07 +00:00
<div class="primary">
2018-11-03 14:23:41 +00:00
{{ block "main" . }}
{{- if or .Title .Content }}
<div class="page block">
{{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }}
{{ with .Content }}<div class="page__content{{ if not $.Title }} page__content--notitle{{ end }}">{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ partial "footer" . }}
{{- with .Site.Menus.main }}
2018-11-03 14:23:41 +00:00
<script src="{{ "js/menu.js" | relURL }}"></script>
{{- end }}
2018-11-03 14:23:41 +00:00
{{- partial "mathjax.html" . -}}
2019-08-30 19:25:10 +00:00
{{- range .Site.Params.customJS }}
<script src="{{ . | relURL }}"></script>
{{- end }}
2018-11-03 14:23:41 +00:00
</body>
</html>