mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-12-30 16:21:56 +00:00
add correct page title
This commit is contained in:
parent
3e647135a6
commit
d6bb61bff0
5 changed files with 50 additions and 37 deletions
|
@ -1,13 +1,52 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ $.Site.Language.Lang }}">
|
<html lang="{{ $.Site.Language.Lang }}">
|
||||||
{{ partial "head" . }}
|
<head>
|
||||||
|
|
||||||
|
{{ block "metaTitle" . }}
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
|
<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 }}">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicons/site.webmanifest">
|
||||||
|
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#ff2749">
|
||||||
|
<meta name="msapplication-TileColor" content="#0e1848">
|
||||||
|
<meta name="theme-color" content="#0e1848">
|
||||||
|
{{ block "metaSocial" . }}
|
||||||
|
<!-- opengraph -->
|
||||||
|
<meta property="og:title" content="Now Playing ∴ Great music should be shared">
|
||||||
|
<meta property="og:description" content="Handpicked Albums by the Glitch Family">
|
||||||
|
<meta property="og:url" content="https://music.glitch.family">
|
||||||
|
<meta property="og:image" content="/favicons/android-chrome-512x512.png">
|
||||||
|
<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="Handpicked Albums by the Glitch Family" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ $sass := resources.Get "/scss/style.scss" }}
|
||||||
|
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
</head>
|
||||||
|
|
||||||
<body class="sans-serif">
|
<body class="sans-serif">
|
||||||
|
|
||||||
{{ block "header" . }}{{ partial "header" . }}{{end}}
|
{{ partial "header" . }}
|
||||||
|
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
|
||||||
{{ block "footer" . }}{{ partial "footer" . }}{{end}}
|
{{ partial "footer" . }}
|
||||||
|
|
||||||
{{ $mobilemenu := resources.Get "js/menu.js" }}
|
{{ $mobilemenu := resources.Get "js/menu.js" }}
|
||||||
{{ $randomizer := resources.Get "js/random.js" }}
|
{{ $randomizer := resources.Get "js/random.js" }}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
{{ define "metaTitle" }}
|
||||||
|
<title>{{ .Title }} ∴ {{ .Site.Title }}</title>
|
||||||
|
{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
<div class="album">
|
<div class="album">
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
{{ define "metaTitle" }}
|
||||||
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||||
|
<title>{{ if (not $paginator.HasPrev) }}{{ .Site.Title }} ∴ Handpicked Albums by the Glitch Family{{ else }}{{ .Site.Title }} ∴ Albums (Page {{ $paginator.PageNumber }}) {{ end }}</title>
|
||||||
|
{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||||
<main>
|
<main>
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
<head>
|
|
||||||
|
|
||||||
<title>{{ .Title }} ∴ {{ $.Site.Title }}</title>
|
|
||||||
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
||||||
<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 }}">
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
|
|
||||||
<link rel="manifest" href="/favicons/site.webmanifest">
|
|
||||||
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#ff2749">
|
|
||||||
<meta name="msapplication-TileColor" content="#0e1848">
|
|
||||||
<meta name="theme-color" content="#0e1848">
|
|
||||||
<!-- opengraph -->
|
|
||||||
<meta property="og:title" content="Now Playing ∴ Great music should be shared">
|
|
||||||
<meta property="og:description" content="Handpicked Albums by the Glitch Family">
|
|
||||||
<meta property="og:url" content="https://music.glitch.family">
|
|
||||||
<meta property="og:image" content="/favicons/android-chrome-512x512.png">
|
|
||||||
<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="Handpicked Albums by the Glitch Family" />
|
|
||||||
|
|
||||||
{{ $sass := resources.Get "/scss/style.scss" }}
|
|
||||||
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
|
||||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
|
||||||
</head>
|
|
|
@ -11,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav class="navigation" data-menu="navigation">
|
<nav class="navigation" data-menu="navigation">
|
||||||
<a class="navigation__item active" href="/">Latest</a>
|
<a class="navigation__item {{ if .IsHome }}active{{ end }}" href="/">Latest</a>
|
||||||
<button class="navigation__item" data-random="btn">Random</button>
|
<button class="navigation__item" data-random="btn">Random</button>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="navigation__mobileOverlay" data-menu="overlay"></div>
|
<div class="navigation__mobileOverlay" data-menu="overlay"></div>
|
||||||
|
|
Loading…
Reference in a new issue