diff options
author | vimux <vimux@protonmail.com> | 2019-03-10 19:47:21 +0300 |
---|---|---|
committer | vimux <vimux@protonmail.com> | 2019-03-10 19:47:21 +0300 |
commit | a83b4c3199f1030235caeac81afdbbcc87f8a298 (patch) | |
tree | bfba9afc2a46cefbf7887903fcd7e72122c7a69c /layouts | |
parent | ac6c8c857bc24da4217df0c626d5d0429cca8a79 (diff) |
Move head section to baseof.html
Unfortunately, blocks not work in nested partials.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ed388a9..6577dd7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,38 @@ <!DOCTYPE html> <html class="no-js" lang="{{ .Site.LanguageCode | default "en-us" }}"> -{{ partial "head.html" . }} +<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 }} + {{- if .Site.Params.twitter_cards }} + {{ template "_internal/twitter_cards.html" . }} + {{- end }} + <link rel="stylesheet" href="{{ "css/main.css" | relURL }}"> + {{- 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 }} + {{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}} + <link rel="manifest" href="{{ "manifest.json" | relURL }}"> + {{- end }} + {{- if not .Site.IsServer }} + {{ template "_internal/google_analytics_async.html" . }} + {{- end }} +</head> <body> {{ partial "header" . }} <div class="primary"> |