|
24 | 24 | {{ end }} |
25 | 25 |
|
26 | 26 | {{ with $description }}<meta name="description" content="{{ . }}">{{ end }} |
27 | | -<meta name="keywords" content="{{ if .Params.Keywords }}{{ delimit .Params.Keywords ", " }}{{ else if isset .Params "tags" }}{{ range .Params.tags }}{{ . }}, {{ end }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"> |
| 27 | +<meta name="keywords" content="{{ if .Params.Keywords }}{{ delimit .Params.Keywords ", " }}{{ else if isset .Params "tags" }}{{ range .Params.tags }}{{ . }}, {{ end }}{{ else }}{{ $.Site.Params.Keywords | default $.Site.Params.keywords }}{{ end }}"> |
28 | 28 |
|
29 | 29 | <meta name="author" content="sysarmy"> |
30 | 30 | <meta property="fb:admins" content="ajolo" /> |
|
41 | 41 | <meta property="twitter:description" content="{{ .Title }}"> |
42 | 42 | <meta name="description" content="{{ $description }}"> |
43 | 43 | {{ else }} |
44 | | - <meta property="og:title" content="{{ .Site.Title }}{{ with .Site.Params.Subtitle }} — {{ . }}{{ end }}"> |
45 | | - <meta property="twitter:title" content="{{ .Site.Title }}"> |
| 44 | + {{ $subtitle := .Site.Params.Subtitle | default .Site.Params.subtitle }} |
| 45 | + <meta property="og:title" content="{{ .Site.Title }}{{ with $subtitle }} — {{ . }}{{ end }}"> |
| 46 | + <meta property="twitter:title" content="{{ .Site.Title }}{{ with $subtitle }} — {{ . }}{{ end }}"> |
46 | 47 | <meta property="og:type" content="website"> |
47 | 48 | <meta property="og:description" content="{{ $description }}"> |
48 | 49 | <meta property="twitter:description" content="{{ $description }}"> |
|
52 | 53 | <meta property="og:url" content="{{ .Permalink }}"> |
53 | 54 | <meta property="og:site_name" content="sysarmy"> |
54 | 55 | <meta property="og:image" content="{{ $ogImage }}"> |
| 56 | +<meta property="og:image:secure_url" content="{{ $ogImage }}"> |
| 57 | +{{/* Dimensions only when using default hero image (not post-specific featured/social image) */}} |
| 58 | +{{ if not (or .Params.socialImage .Params.featuredImage) }} |
| 59 | + {{ with .Site.Params.heroImageWidth }}<meta property="og:image:width" content="{{ . }}">{{ end }} |
| 60 | + {{ with .Site.Params.heroImageHeight }}<meta property="og:image:height" content="{{ . }}">{{ end }} |
| 61 | +{{ end }} |
55 | 62 | <meta name="twitter:image" content="{{ $ogImage }}"> |
56 | 63 | <meta name="twitter:image:src" content="{{ $ogImage }}"> |
57 | 64 | <meta property="og:image:alt" content="{{ if .IsPage }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}"> |
| 65 | +<meta name="twitter:image:alt" content="{{ if .IsPage }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}"> |
58 | 66 |
|
59 | 67 | {{ if .Params.tags }} |
60 | 68 | {{ range .Params.tags }} |
|
0 commit comments