1
+ < meta name ="description " content ="{{ if .Params.Subtitle }}{{ .Params.Subtitle }}{{else}}{{ .Site.Params.Subtitle }}{{ end }} " />
2
+
3
+ < title itemprop ="name "> {{ default .Site.Title .Title }}</ title >
4
+ < meta property ="og:title " content ="{{ default .Site.Title .Title }} " />
5
+ < meta name ="twitter:title " content ="{{ default .Site.Title .Title }} " />
6
+ < meta itemprop ="name " content ="{{ default .Site.Title .Title }} " />
7
+ < meta property ="og:site_name " content ="{{ .Site.Params.sitename }} " />
8
+ < meta name ="description " content ="{{ default .Site.Params.Subtitle .Params.Subtitle }} " />
9
+ < meta itemprop ="description " content ="{{ default .Site.Params.Subtitle .Params.Subtitle }} " />
10
+ < meta property ="og:description " content ="{{ default .Site.Params.Subtitle .Params.Subtitle }} " />
11
+ < meta name ="twitter:description " content ="{{ default .Site.Params.Subtitle .Params.Subtitle }} " />
12
+ < base href ="{{ .RelPermalink }} ">
13
+ < link rel ="canonical " href ="{{ .Permalink }} " itemprop ="url " />
14
+ < meta name ="url " content ="{{ .Permalink }} " />
15
+ < meta property ="og:url " content ="{{ .Permalink }} " />
16
+ < meta name ="twitter:url " content ="{{ .Permalink }} " />
17
+ < meta name ="twitter:card " content ="summary " />
18
+ {{ with .Site.Params.Author }}
19
+ < meta name ="twitter:creator " content ="{{ . }} " />
20
+ {{ end }}
21
+ {{ $img := slice }}
22
+ {{ if and .Params.images (gt (len .Params.images) 0) }}
23
+ {{ $scratch := newScratch }}
24
+ {{ partial "helpers/get" (dict "scratch" $scratch "row" .Params ) }}
25
+ {{ $img = $scratch.Get "img" }}
26
+ {{ $img = $img.Resize "1000x" }}
27
+ {{ else if .Site.Params.image }}
28
+ {{ $scratch := newScratch }}
29
+ {{ $row := dict "images" (slice .Site.Params.image) }}
30
+ {{ partial "helpers/get" (dict "scratch" $scratch "row" $row) }}
31
+ {{ $img = $scratch.Get "img" }}
32
+ {{ $img = $img.Resize "1000x" }}
33
+ {{ end }}
34
+ {{ with $img }}
35
+ < meta itemprop ="image " content ="{{ .Permalink }} " />
36
+ < meta property ="og:image " content ="{{ .Permalink }} " />
37
+ < meta name ="twitter:image " content ="{{ .Permalink }} " />
38
+ {{ end }}
39
+ < meta property ="og:locale " content ="{{ .Language.Lang }} ">
0 commit comments