28 lines
2.1 KiB
HTML
28 lines
2.1 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{{ $page := "" }}{{ with .Paginator }}{{ if gt .Number 1 }}{{ $page = printf " · page %d" .Number }}{{ end }}{{ end }}
|
|
{{ if .IsHome }}<title>{{ .Site.Config.Name }}</title>{{ else }}<title>{{ .Title }}{{ $page }} · {{ .Site.Config.Name }}</title>{{ end }}
|
|
{{ $desc := default .Site.Config.Description .Summary }}
|
|
{{ with $desc }}<meta name="description" content="{{ . }}">{{ end }}
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
{{ with .Paginator }}{{ if gt .TotalPages 1 }}{{ with .Prev }}<link rel="prev" href="{{ .Permalink }}">{{ end }}{{ with .Next }}<link rel="next" href="{{ .Permalink }}">{{ end }}{{ end }}{{ end }}
|
|
{{ if .IsHome }}{{ verificationTags }}{{ end }}
|
|
{{ if .NoIndex }}<meta name="robots" content="noindex">{{ end }}
|
|
<meta property="og:site_name" content="{{ .Site.Config.Name }}">
|
|
<meta property="og:title" content="{{ .Title }}">
|
|
{{ with $desc }}<meta property="og:description" content="{{ . }}">{{ end }}
|
|
<meta property="og:url" content="{{ .Permalink }}">
|
|
<meta property="og:type" content="{{ if and .Collection (not .Date.IsZero) }}article{{ else }}website{{ end }}">
|
|
{{ with .Image }}<meta property="og:image" content="{{ absURL . }}"><meta name="twitter:card" content="summary_large_image">{{ end }}
|
|
{{ with .ImageAlt }}<meta property="og:image:alt" content="{{ . }}">{{ end }}
|
|
{{ with .Site.Config.Fediverse }}<meta name="fediverse:creator" content="{{ . }}">{{ end }}
|
|
<meta name="color-scheme" content="light dark">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="{{ asset "styles.css" }}">
|
|
{{ with lookCSS }}<link rel="stylesheet" href="{{ . }}">{{ end }}
|
|
{{ consent }}
|
|
<script src="{{ asset "site.js" }}"></script>
|
|
{{ range $name, $c := .Site.Config.Collections }}{{ if $c.Feed }}{{ $path := $c.FeedPath }}{{ if not $path }}{{ $path = printf "/%s/feed.xml" $name }}{{ end }}
|
|
<link rel="alternate" type="application/atom+xml" title="{{ $.Site.Config.Name }}: {{ $name }}" href="{{ $path }}">{{ end }}{{ end }}
|
|
{{ template "schema" . }}
|