Added modified head.htm partial to point to favicon

This commit is contained in:
Glenn 2021-03-14 22:29:11 +10:00
parent d8f3aa0abe
commit 568c5d5379
14 changed files with 109 additions and 26 deletions

View File

@ -0,0 +1,96 @@
<head>
<title> {{.Site.Params.author}}{{ with .Title }} | {{ . }}{{ end }} </title>
<!-- Meta -->
<meta charset="utf-8">
{{- hugo.Generator -}}
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="description" content="{{ .Site.Params.description }}">
{{- if .Site.Params.googleSiteVerify }}
<meta name="google-site-verification" content="{{ .Site.Params.googleSiteVerify }}">
{{- end -}}
<!-- CSS -->
{{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet"
href="{{ $style.Permalink }}"
integrity="{{ $style.Data.Integrity }}"
crossorigin="anonymous"
type="text/css">
{{ $markupHighlightStyle := resources.Get "css/markupHighlight.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet"
href="{{ $markupHighlightStyle.Permalink }}"
integrity="{{ $markupHighlightStyle.Data.Integrity }}"
crossorigin="anonymous"
type="text/css">
{{ range .Site.Params.customCss }}
{{ $minstyles := resources.Get . }}
{{ $styles := $minstyles | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet"
href="{{ $styles.Permalink }}"
integrity="{{ $styles.Data.Integrity }}"
crossorigin="anonymous"
media="screen" />
{{ end }}
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous" />
<!-- Favicons -->
<link rel="shortcut icon" href="{{ .Site.Params.favicon | absURL }}favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.favicon | absURL }}apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.favicon | absURL }}favicon.png">
<link rel="canonical" href="{{ .Permalink }}">
<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<!-- JavaScript -->
{{ $anatoleHeader := resources.Get "js/anatole-header.js" }}
{{ $secureHeaderJS := $anatoleHeader | resources.Minify | resources.Fingerprint }}
<script type="text/javascript"
src="{{ $secureHeaderJS.Permalink }}"
integrity="{{ $secureHeaderJS.Data.Integrity }}"
crossorigin="anonymous"></script>
{{ if not .Site.Params.disableThemeSwitcher }}
{{ $anatoleThemeSwitcher := resources.Get "js/anatole-theme-switcher.js" }}
{{ $secureThemeSwitcherJS := $anatoleThemeSwitcher | resources.Minify | resources.Fingerprint }}
<script type="text/javascript"
src="{{ $secureThemeSwitcherJS.Permalink }}"
integrity="{{ $secureThemeSwitcherJS.Data.Integrity }}"
crossorigin="anonymous"></script>
{{ end }}
{{- $js := "" -}}
{{- range .Site.Params.customJs -}}
{{- if or (in . "http://") (in . "https://") -}}
<script src="{{ . | relURL }}"></script>
{{- else -}}
{{- $customJS := resources.Get . -}}
{{- if $customJS -}}
{{- if eq $js "" -}}
{{- $js = $customJS -}}
{{- else -}}
{{- $js = slice $js $customJS | resources.Concat "js/custom.js" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- if ne $js "" -}}
{{- $secureJS := $js | resources.Minify | resources.Fingerprint -}}
<script type="text/javascript"
src="{{ $secureJS.Permalink }}"
integrity="{{ $secureJS.Data.Integrity }}"
crossorigin="anonymous"></script>
{{- end -}}
<!-- Twitter Cards -->
{{ template "_internal/twitter_cards.html" . }}
</head>

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/404.html">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/about/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/archives/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/categories/blogging/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/categories/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/contact/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/post/2021/02/back-on-the-fediverse/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/post/2021/02/online-with-hugo/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/post/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/tags/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/tags/index/">

View File

@ -26,8 +26,7 @@
<link rel="shortcut icon" href="https://caffeinated.blog/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="https://caffeinated.blog/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://caffeinated.blog/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://caffeinated.blog/favicons/favicon.png">
<link rel="canonical" href="https://caffeinated.blog/tags/newbeginnings/">