blob: 1668d576e4aa093e0971e99539a0e1f48d524392 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{{- $noindex := "" -}}
{{- $image := "" -}}
{{- $author := .Section -}}
{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}}
{{- if not $kind -}}
{{- $image = print ("" | absURL) "/data/media/" $author "/" $author "-profile.png" -}}
{{- end -}}
{{- with or .Params.Feed .Params.Unlisted .Params.ExpiryDate -}}
{{- $noindex = "noindex,nofollow" -}}
{{- end }}
<!-- HTML Meta Tags -->
<meta charset="utf-8" />
<meta name="author" content="{{ or $author $.Site.Title -}}" />
<meta name="robots" content="{{ or $noindex .Site.Params.site.robots "index,follow" }}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="{{- partial "head-title.html" . -}}" />
<meta name="generator" content="Hugo {{ hugo.Version }}" />
<!-- Search Engine Tags -->
<meta itemprop="name" content="{{ partial "head-title.html" . -}}" />
<meta itemprop="description" content="{{- partial "head-description.html" . -}}" />
<meta itemprop="image" content="{{ $image }}" />
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="{{ partial "head-title.html" . -}}" />
<meta property="og:description" content="{{- partial "head-description.html" . -}}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image" content="{{ $image }}" />
<meta property="og:type" content="website" />
<meta property="article:published_time" content="{{ (or .Params.PublishDate now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" />
<meta property="article:modified_time " content="{{ (or .Params.LastMod now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ partial "head-title.html" . -}}" />
<meta name="twitter:description" content="{{- partial "head-description.html" . -}}" />
<meta name="twitter:image" content="{{ $image }}" />
<!-- Extra Meta Tags -->
<meta name='base-url' content="{{ "" | absURL }}" />
<meta name='last-modified' content="{{ now.UTC.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}" />
<!-- Search Verification -->
{{- partial "head-search.html" . -}}
<!-- Feed Discovery -->
{{- partial "head-discovery.html" . -}}
<!-- Canonicalization -->
{{- partial "head-canonical.html" . -}}
<!-- Styles -->
{{- partial "head-css.html" . -}}
<!-- Scripts -->
{{- partial "head-js.html" . -}}
<!-- Progressive Enhancement -->
{{- partial "head-manifest.html" . -}}
<!-- Content Security Policy -->
{{- partial "head-csp.html" . -}}
<!-- No Scripts -->
<noscript>
<style>
{{ safeCSS (readFile "assets/css/noscript.css") }}
</style>
</noscript>
|