|
10 | 10 | <link rel="preload" fetchpriority="low" as="image" href="/img/logo.svg" type="image/svg+xml">
|
11 | 11 | <link rel="preload" fetchpriority="low" href="/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
12 | 12 | <link rel="preload" fetchpriority="low" href="/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
| 13 | + <meta property="og:url" content="{{ .Permalink }}"> |
| 14 | + <meta property="og:site_name" content="{{ .Site.Title }}"> |
13 | 15 | {{ if and (eq .Section "blog") .IsPage }}
|
14 | 16 | <meta name="description" content="{{ .Summary }}">
|
15 | 17 | <meta name="fediverse:creator" content="@cryptomator@mastodon.online">
|
16 | 18 | <meta property="og:title" content="{{ .Title }}">
|
17 | 19 | <meta property="og:type" content="article" />
|
18 |
| - <meta property="og:url" content="{{ .Permalink }}"> |
19 |
| - <meta property="og:site_name" content="{{ .Site.Title }}"> |
20 | 20 | <meta property="og:description" content="{{ .Summary }}">
|
21 | 21 | <meta property="article:author" content="{{ with .Params.Author }}{{ . }}{{ else }}Cryptobot{{ end }}" />
|
22 | 22 | <meta property="article:published_time" content="{{ dateFormat "2006-01-02" .Params.Date }}" />
|
|
28 | 28 | <meta name="fediverse:creator" content="@cryptomator@mastodon.online">
|
29 | 29 | <meta property="og:title" content="{{ .Title }}">
|
30 | 30 | <meta property="og:type" content="article" />
|
31 |
| - <meta property="og:url" content="{{ .Permalink }}"> |
32 |
| - <meta property="og:site_name" content="{{ .Site.Title }}"> |
33 | 31 | <meta property="og:description" content="{{ .Params.Description }}">
|
34 | 32 | {{ else }}
|
35 | 33 | <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ i18n "site_meta_description" }}{{ end }}"/>
|
36 | 34 | <meta property="og:title" content="{{ if not .IsHome }}Cryptomator - {{ end }}{{ .Title }}"/>
|
37 | 35 | <meta property="og:type" content="website" />
|
38 |
| - <meta property="og:url" content="{{ .Permalink }}"/> |
39 |
| - <meta property="og:site_name" content="{{ .Site.Title }}"/> |
40 | 36 | <meta property="og:description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ i18n "site_meta_description" }}{{ end }}"/>
|
41 | 37 | {{ end }}
|
42 | 38 | {{ if .Params.Ogimage }}
|
|
48 | 44 | <meta property="og:image:width" content="1200" />
|
49 | 45 | <meta property="og:image:height" content="630" />
|
50 | 46 | {{ end }}
|
51 |
| - <meta property="og:locale" content="{{ .Site.Language.Params.LanguageCode }}" /> |
| 47 | + <meta property="og:locale" content="{{ replace .Site.Language.LanguageCode "-" "_" }}" /> |
52 | 48 | {{ range .Translations }}
|
53 |
| - <meta property="og:locale:alternate" content="{{ .Language.Params.LanguageCode }}" /> |
| 49 | + <meta property="og:locale:alternate" content="{{ replace .Language.LanguageCode "-" "_" }}" /> |
54 | 50 | {{ end }}
|
55 | 51 | <meta name="apple-itunes-app" content="app-id=1560822163">
|
56 | 52 | {{ if hugo.IsDevelopment }}
|
|
63 | 59 | {{ end }}
|
64 | 60 | <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="{{ .Site.LanguagePrefix }}/feed.xml" />
|
65 | 61 | {{ range .AllTranslations }}
|
66 |
| - <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" /> |
| 62 | + <link rel="alternate" hreflang="{{ .Language.LanguageCode }}" href="{{ .Permalink }}" /> |
| 63 | + {{ if eq .Language.Lang "en" }} |
| 64 | + <link rel="alternate" hreflang="x-default" href="{{ .Permalink }}" /> |
| 65 | + {{ end }} |
67 | 66 | {{ end }}
|
68 | 67 | </head>
|
69 | 68 | <body x-data="{ isNavOpen: false, globalData: { githubStargazers: null, mastodonFollowers: null } }" x-init="determineGlobalData('{{ .Site.Language.Lang }}', globalData)" :class="isNavOpen && 'overflow-hidden'" class="bg-dark font-body text-gray-900">
|
|
0 commit comments