summaryrefslogtreecommitdiff
path: root/themes/markskitchen/layouts/partials/head.html
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2022-07-19 21:12:41 -0500
committerMark Powers <mark@marks.kitchen>2022-07-19 21:12:41 -0500
commit4e965c7d9a66d6a72b24c7b319c10d8006f2026e (patch)
tree4021ef67be5ed3a76e0632c3cfec5d6428806850 /themes/markskitchen/layouts/partials/head.html
Initial Commit
Diffstat (limited to 'themes/markskitchen/layouts/partials/head.html')
-rw-r--r--themes/markskitchen/layouts/partials/head.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/themes/markskitchen/layouts/partials/head.html b/themes/markskitchen/layouts/partials/head.html
new file mode 100644
index 0000000..3bd261e
--- /dev/null
+++ b/themes/markskitchen/layouts/partials/head.html
@@ -0,0 +1,48 @@
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <!-- author -->
+ <meta name="author" content="{{ .Site.Author.name }}">
+
+ <!-- description -->
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{ else if and .IsPage .Summary }}
+ <meta name="description" content="{{ .Summary }}">
+ {{ else }}
+ <meta name="description" content="{{ .Site.Params.description }}">
+ {{ end }}
+
+ <!-- favicon -->
+ <link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
+
+ <!-- keywords -->
+ {{ if .Keywords }}
+ <meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}">
+ {{ end }}
+
+ <!-- permalink -->
+ <link rel="canonical" href="{{ .Permalink }}">
+
+ <!-- rss -->
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `
+ <link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ <!-- schema -->
+ {{ template "_internal/schema.html" . }}
+
+ <!-- style -->
+ <link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'>
+
+ <!-- title -->
+ {{ if .IsHome }}
+ <title>{{ .Site.Title }}</title>
+ {{ else }}
+ <title>{{ .Title }} - {{ .Site.Title }}</title>
+ {{ end }}
+
+ {{ block "head" . }}{{ end }}
+</head>