45 lines
2.4 KiB
HTML
45 lines
2.4 KiB
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">
|
||
|
{{ block "title" . }}
|
||
|
<title>
|
||
|
{{ if .IsHome }}
|
||
|
{{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }}
|
||
|
{{ else }}
|
||
|
{{ .Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}
|
||
|
{{ end }}
|
||
|
</title>
|
||
|
{{ end }}
|
||
|
<meta name="author" content="{{ $.Site.Params.author }}">
|
||
|
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||
|
<link rel="me" href="{{ $.Site.Params.contact.fediverse }}">
|
||
|
<link rel="me" href="{{ $.Site.Params.contact.email }}">
|
||
|
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett{{ range .Site.Params.clacks }}, {{ . }}{{end}}" />
|
||
|
|
||
|
<!-- Social: Twitter -->
|
||
|
<meta name="twitter:card" content="summary_large_image" />
|
||
|
<meta name="twitter:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ else }}{{ .Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ end }}" />
|
||
|
<meta name="twitter:description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}"/>
|
||
|
<meta name="twitter:image" content="{{ if .IsHome }}{{ .Site.Params.cover }}{{ else }}{{ .Params.Cover }}{{ end }}" />
|
||
|
|
||
|
<!-- Social: OpenGraph -->
|
||
|
<meta property="og:locale" content="en_GB">
|
||
|
<meta property="og:type" content="article">
|
||
|
<meta property="og:title" content="{{ .Title }}">
|
||
|
<meta property="og:description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}">
|
||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||
|
<meta property="og:site_name" content="{{ $.Site.Title }}">
|
||
|
<meta property="og:image" content="{{ if .IsHome }}{{ .Site.Params.cover }}{{ else }}{{ .Params.Cover }}{{ end }}" />
|
||
|
|
||
|
<!-- Styles -->
|
||
|
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" true) }}
|
||
|
{{ $scss := resources.Get "scss/imports.scss" }}
|
||
|
{{ $style := $scss | resources.ToCSS $options }}
|
||
|
<link rel="preload" href="{{ $style.RelPermalink }}" as="style">
|
||
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||
|
|
||
|
{{ partialCached "favicons.html" . }}
|
||
|
</head>
|