|
23 | 23 | {{ range .Params.tags }} |
24 | 24 | <meta property="article:tag" content="{{ . }}" /> |
25 | 25 | {{ end }} |
26 | | - <meta property="og:image" content="{{ "/img/logo.png" | absURL }}" /> |
27 | | - <meta property="og:image:width" content="256" /> |
28 | | - <meta property="og:image:height" content="256" /> |
29 | 26 | {{ else if (eq .Type "article") }} |
30 | 27 | <meta name="description" content="{{ .Params.Description }}"> |
31 | 28 | <meta name=" fediverse:creator" content=" @[email protected]" > |
|
34 | 31 | <meta property="og:url" content="{{ .Permalink }}"> |
35 | 32 | <meta property="og:site_name" content="{{ .Site.Title }}"> |
36 | 33 | <meta property="og:description" content="{{ .Params.Description }}"> |
37 | | - {{ if .Params.Ogimage }} |
38 | | - <meta property="og:image" content="{{ .Params.Ogimage.Relsrc | absURL }}"> |
39 | | - <meta property="og:image:width" content="{{ .Params.Ogimage.Width }}"/> |
40 | | - <meta property="og:image:height" content="{{ .Params.Ogimage.Height }}"/> |
41 | | - {{ else }} |
42 | | - <meta property="og:image" content="{{ "/img/og-image.png" | absURL }}"> |
43 | | - <meta property="og:image:width" content="1200"/> |
44 | | - <meta property="og:image:height" content="630"/> |
45 | | - {{ end }} |
46 | 34 | {{ else }} |
47 | 35 | <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ i18n "site_meta_description" }}{{ end }}"/> |
48 | 36 | <meta property="og:title" content="{{ if not .IsHome }}Cryptomator - {{ end }}{{ .Title }}"/> |
49 | 37 | <meta property="og:type" content="website" /> |
50 | 38 | <meta property="og:url" content="{{ .Permalink }}"/> |
51 | 39 | <meta property="og:site_name" content="{{ .Site.Title }}"/> |
52 | 40 | <meta property="og:description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ i18n "site_meta_description" }}{{ end }}"/> |
53 | | - <meta property="og:image" content="{{ "/img/og-image.png" | absURL }}"> |
54 | | - <meta property="og:image:width" content="1200"/> |
55 | | - <meta property="og:image:height" content="630"/> |
| 41 | + {{ end }} |
| 42 | + {{ if .Params.Ogimage }} |
| 43 | + <meta property="og:image" content="{{ .Params.Ogimage.Relsrc | absURL }}"> |
| 44 | + <meta property="og:image:width" content="{{ .Params.Ogimage.Width }}"/> |
| 45 | + <meta property="og:image:height" content="{{ .Params.Ogimage.Height }}"/> |
| 46 | + {{ else }} |
| 47 | + <meta property="og:image" content="{{ "/img/og-image.png" | absURL }}" /> |
| 48 | + <meta property="og:image:width" content="1200" /> |
| 49 | + <meta property="og:image:height" content="630" /> |
56 | 50 | {{ end }} |
57 | 51 | <meta property="og:locale" content="{{ .Site.Language.Params.LanguageCode }}" /> |
58 | 52 | {{ range .Translations }} |
|
0 commit comments