1
0
Fork 0
mirror of https://github.com/GuerillaHQ/now-playing synced 2024-07-03 18:17:56 +00:00
now-playing/layouts/_default/baseof.html

81 lines
3.5 KiB
HTML
Raw Normal View History

2019-11-27 02:56:03 +00:00
<!doctype html>
<html lang="{{ $.Site.Language.Lang }}">
2019-12-03 19:53:14 +00:00
<head>
{{ block "metaTitle" . }}
<title>{{ .Title }}</title>
2023-02-20 01:08:02 +00:00
<meta name="description" content="{{ .Site.Params.description }}">
2019-12-03 19:53:14 +00:00
{{ end }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<base href="{{ if getenv "CONTEXT" }}{{ cond (eq "production" (getenv "CONTEXT")) (getenv "URL") (getenv "DEPLOY_PRIME_URL") }}{{ else }}{{ $.Site.BaseURL }}{{ end }}">
2022-04-22 23:40:54 +00:00
<link rel="canonical" href="{{ .Permalink }}">
2019-12-03 19:53:14 +00:00
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/favicons/apple-touch-icon.png" | absURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicons/favicon-32x32.png" | absURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicons/favicon-16x16.png" | absURL }}">
<link rel="manifest" href="{{ "/favicons/site.webmanifest" | absURL }}">
<link rel="mask-icon" href="{{ "/favicons/safari-pinned-tab.svg" | absURL }}" color="#ff2749">
2019-12-03 19:53:14 +00:00
<meta name="msapplication-TileColor" content="#0e1848">
<meta name="theme-color" content="#0e1848">
{{ block "metaSocial" . }}
2023-02-20 01:08:02 +00:00
<!-- opengraph -->
<meta property="og:title" content="Now Playing ∴ Great music should be shared">
<meta property="og:description" content="{{ .Site.Params.description }}">
<meta property="og:url" content="{{ "/" | absURL }}">
<meta property="og:image" content="{{ "/favicons/android-chrome-512x512.png" | absURL }}">
<meta property="og:image:height" content="512">
<meta property="og:image:width" content="512">
<!-- twitter card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Now Playing ∴ Great music should be shared" />
<meta name="twitter:description" content="{{ .Site.Params.description }}" />
2019-12-03 19:53:14 +00:00
{{ end }}
<!-- experimental view transition API -->
<meta name="view-transition" content="same-origin" />
2019-12-03 19:53:14 +00:00
{{ with .Site.GetPage "/" }}
{{ with .OutputFormats.Get "rss" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{ end }}
2019-12-03 19:53:14 +00:00
{{ $sass := resources.Get "/scss/style.scss" }}
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
2019-12-03 21:21:38 +00:00
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
2023-02-21 20:55:45 +00:00
<link rel="preload" href="{{ $secureStyle.Permalink }}" as="style" />
2019-12-03 21:21:38 +00:00
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
2023-02-21 21:11:57 +00:00
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-regular-webfont.woff2" crossorigin/>
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-semibold-webfont.woff2" crossorigin/>
<link rel="preload" as="font" type="font/woff2" href="/fonts/sourcesanspro-black-webfont.woff2" crossorigin/>
2019-12-03 19:53:14 +00:00
</head>
2019-12-23 07:42:41 +00:00
<body>
2019-11-27 02:56:03 +00:00
2019-12-03 19:53:14 +00:00
{{ partial "header" . }}
2019-11-27 02:56:03 +00:00
{{ block "main" . }}{{ end }}
2019-12-03 19:53:14 +00:00
{{ partial "footer" . }}
2019-11-28 01:05:31 +00:00
2019-12-03 21:18:10 +00:00
<script>
window.albumsUrls = [
2022-04-22 23:23:53 +00:00
{{ range where .Site.RegularPages "Type" "in" "a" }}
2019-12-03 21:21:38 +00:00
"{{ .Permalink }}",
2019-12-03 21:18:10 +00:00
{{ end }}
]
</script>
2019-11-28 01:05:31 +00:00
{{ $mobilemenu := resources.Get "js/menu.js" }}
{{ $randomizer := resources.Get "js/random.js" }}
{{ $js := slice $mobilemenu $randomizer | resources.Concat "js/bundle.js" }}
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
2019-11-27 02:56:03 +00:00
</body>
</html>