|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <title>{{ .Title }}</title> |
| 7 | + {{ block "preloads" . }} |
| 8 | + <!-- optional additional page-specific preloads --> |
| 9 | + {{ end }} |
| 10 | + <link rel="preload" fetchpriority="low" as="image" href="favicon.ico" type="image/x-icon"> |
| 11 | + <link rel="preload" fetchpriority="low" as="image" href="img/logo.svg" type="image/svg+xml"> |
| 12 | + <link rel="preload" fetchpriority="low" href="/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous"> |
| 13 | + <link rel="preload" fetchpriority="low" href="/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous"> |
7 | 14 | {{ if and (eq .Section "blog") .IsPage }} |
8 | 15 | <meta name="description" content="{{ .Summary }}"> |
9 | 16 | <meta property="og:title" content="{{ .Title }}"> |
|
51 | 58 | <meta property="og:locale:alternate" content="{{ .Language.Params.LanguageCode }}" /> |
52 | 59 | {{ end }} |
53 | 60 | <meta name="apple-itunes-app" content="app-id=1560822163"> |
54 | | - {{ if hugo.IsServer }} |
| 61 | + {{ if hugo.IsDevelopment }} |
55 | 62 | {{ $css := resources.Get "css/main.css" | postCSS }} |
56 | 63 | <link rel="stylesheet" href="{{ $css.RelPermalink }}" media="screen" /> |
57 | 64 | {{ else }} |
|
62 | 69 | {{ range .Translations }} |
63 | 70 | <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .RelPermalink }}" /> |
64 | 71 | {{ end }} |
65 | | - {{ block "head" . }} |
66 | | - <!-- optional additional page-specific stuff that goes into head --> |
67 | | - {{ end }} |
68 | 72 | </head> |
69 | 73 | <body x-data="{ isNavOpen: false, globalData: { githubStargazers: null } }" x-init="determineGitHubStargazersCount('{{ .Site.Language.Lang }}', globalData)" :class="isNavOpen && 'overflow-hidden'" class="bg-dark font-body text-gray-900"> |
70 | 74 | {{ partial "nav.html" . }} |
|
76 | 80 | {{ end }} |
77 | 81 | </div> |
78 | 82 | {{ partial "footer.html" . }} |
79 | | - {{ if hugo.IsServer }} |
| 83 | + {{ if hugo.IsDevelopment }} |
80 | 84 | <script data-domain="cryptomator.local" src="https://plausible.skymatic.de/js/script.file-downloads.hash.outbound-links.tagged-events.local.js" integrity="sha384-eSdyNyMq4w2Hzeb7A3pkbi2+zvI/skXuKlWsX5uzccigZEHDhHyBYoTASuSW+ZUQ" crossorigin="anonymous" defer></script> |
81 | 85 | {{ $baseJs := resources.Get "js/base.js" }} |
82 | 86 | <script type="text/javascript" src="{{ $baseJs.RelPermalink }}" defer></script> |
|
0 commit comments