summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
blob: 2762e622a6e4783ddf181b22160095b32a292e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <!-- author -->
  <meta name="author" content="{{ .Site.Params.Author.name }}">

  <!-- description -->
  <meta name="description" content="{{ .Site.Params.Description }}">

  <!-- 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 -}}

  <!-- custom feeds -->
  <link rel="alternative" type="application/rss+xml" href="https://huginn.marks.kitchen/users/1/web_requests/23/reblogs.xml" title="Mark's Reblogs" />

  <!-- 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 }}

  {{ template "_internal/opengraph.html" . }}

  {{ block "head" . }}{{ end }}
</head>