2020-01-12 07:51:51 +01:00
|
|
|
<!-- Basic stuff -->
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="HandheldFriendly" content="True">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
|
|
|
|
2020-10-07 21:27:47 +02:00
|
|
|
<title>{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
2020-01-12 07:51:51 +01:00
|
|
|
<meta name="description" content="{{ .Site.Params.Description }}">
|
|
|
|
|
2020-04-29 21:27:53 +02:00
|
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2020-02-15 21:34:25 +01:00
|
|
|
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}">
|
|
|
|
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}">
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2020-11-04 17:46:19 +01:00
|
|
|
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2020-07-09 21:42:23 +02:00
|
|
|
{{ range .Site.Params.customJS -}}
|
2020-11-04 17:46:19 +01:00
|
|
|
{{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }}
|
2020-07-09 21:42:23 +02:00
|
|
|
{{- end }}
|
|
|
|
|
2020-01-23 21:29:36 +01:00
|
|
|
{{ template "_internal/opengraph.html" . }}
|
2020-01-23 21:55:42 +01:00
|
|
|
{{ template "_internal/twitter_cards.html" . }}
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2021-01-11 19:40:41 +01:00
|
|
|
{{ if isset .Site.Params.webmentions "login" }}
|
|
|
|
<link rel="webmention" href="https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" />
|
|
|
|
{{ if eq .Site.Params.webmentions.pingback true }}
|
|
|
|
<link rel="pingback" href="https://webmention.io/{{.Site.Params.webmentions.login}}/xmlrpc" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2021-02-23 21:49:44 +01:00
|
|
|
{{ if isset .Site.Params.webmentions "url" }}
|
|
|
|
<link rel="webmention" href="{{.Site.Params.webmentions.url}}" />
|
|
|
|
{{ end }}
|
2021-01-11 19:40:41 +01:00
|
|
|
|
2020-01-12 07:51:51 +01:00
|
|
|
<!-- Article tags -->
|
|
|
|
<!-- <meta property="article:published_time" content="">
|
|
|
|
<meta property="article:modified_time" content="">
|
|
|
|
<meta property="article:tag" content="">
|
|
|
|
<meta property="article:publisher" content="https://www.facebook.com/XXX"> -->
|
2020-01-23 21:55:42 +01:00
|
|
|
|
2021-04-11 16:00:58 +02:00
|
|
|
{{ if and (.Site.GoogleAnalytics) (or (eq (getenv "HUGO_ENV") "production") (eq .Site.Params.env "production")) }}
|
|
|
|
{{ if hasPrefix .Site.GoogleAnalytics "UA-" }}
|
|
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
{{ end }}
|
2020-06-05 17:32:01 +02:00
|
|
|
{{ end }}
|
2020-06-09 21:45:50 +02:00
|
|
|
|
2020-10-23 13:48:07 +02:00
|
|
|
{{ partial "head-extra.html" . }}
|