Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
37
themes/platters/layouts/partials/head.html
Normal file
37
themes/platters/layouts/partials/head.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000000">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
|
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
|
||||
|
||||
{{- if eq .Kind "page" -}}
|
||||
<meta name="description" content="{{ .Summary }}" />
|
||||
<meta name="author" content="{{ .Params.Author | default site.Author.name }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Params.description }}">
|
||||
<meta name="author" content="{{ site.Author.name }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- range $.Scratch.Get "social-list" -}}
|
||||
<link rel="preload" as="image" href="{{ printf `%s.svg` . | absURL }}">
|
||||
{{- end -}}
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ `icons/favicon.png` | relURL }}">
|
||||
<link rel="apple-touch-icon" type="image/png" href="{{ `icons/touchicon.png` | relURL }}">
|
||||
|
||||
<link rel="me" href="https://mastodon.social/@erynofwales">
|
||||
|
||||
{{ hugo.Generator }}
|
||||
|
||||
{{- range .AlternativeOutputFormats -}}
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .RelPermalink }}" title="{{ site.Title }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- if or hugo.IsProduction (eq site.Params.env "production") -}}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{- end -}}
|
||||
</head>
|
Loading…
Add table
Add a link
Reference in a new issue