aboutsummaryrefslogtreecommitdiff
path: root/hugo/layouts
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-03-30 04:15:46 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-03-30 04:15:46 +0200
commit5aae5f1292e7450560778b1a8275a0cc15e704a7 (patch)
treeb23e6fa916f1bc814f1d0c9cad3d9c784878bce7 /hugo/layouts
parent3d90dbd56a04665ddb912984e6bc4081ae4b583e (diff)
remove moar cdnjs dependencies
Diffstat (limited to 'hugo/layouts')
-rw-r--r--hugo/layouts/partials/head.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/hugo/layouts/partials/head.html b/hugo/layouts/partials/head.html
new file mode 100644
index 0000000..cee7cac
--- /dev/null
+++ b/hugo/layouts/partials/head.html
@@ -0,0 +1,26 @@
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+
+ <title>{{ .Title }}</title>
+ <meta name="description" content="{{ .Site.Params.description }}">
+ <meta name="author" content='{{ .Site.Params.author }}'>
+
+ <link rel="stylesheet" href="/cdnjs/bootstrap.min.css">
+ <link rel="stylesheet" href="/cdnjs/all.min.css">
+
+ {{ $style := resources.Get "sass/researcher.scss" | resources.ExecuteAsTemplate "sass/researcher.scss" . | toCSS | minify }}
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}">
+
+ {{ with .Site.Params.favicon }}
+ <link rel="icon" type="image/ico" href="{{ . | absURL }}">
+ {{ end }}
+
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ {{ if not .Site.IsServer }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ end }}
+</head>