diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-30 04:05:19 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-30 04:05:19 +0200 |
commit | e7c7e066e5eebac11e6fea0205837e744b0b2308 (patch) | |
tree | 3aff4afe32cdee1ea943ad1b5b41a684241f5caf /layouts/partials/head.html | |
parent | 1ab60916bde828a127ed6aef957578d21888180e (diff) |
remove moar cdnjs trackers
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..cee7cac --- /dev/null +++ b/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> |