1
0
Fork 0
mirror of https://github.com/GuerillaHQ/now-playing synced 2024-06-27 14:01:35 +00:00

add meta description

This commit is contained in:
Tixie 2019-12-03 22:31:16 +01:00
parent 69e3405ab2
commit f6ad10ef0a
3 changed files with 3 additions and 1 deletions

View file

@ -4,11 +4,11 @@
{{ block "metaTitle" . }}
<title>{{ .Title }}</title>
<meta name="description" content="Handpicked Albums by the Glitch Family">
{{ 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 }}">

View file

@ -1,5 +1,6 @@
{{ define "metaTitle" }}
<title>{{ .Title }} ∴ {{ .Site.Title }}</title>
<meta name="description" content="Listen to this album on Now Playing">
{{ end }}
{{ define "metaSocial" }}
{{ $original := resources.Get .Params.cover }}

View file

@ -1,6 +1,7 @@
{{ define "metaTitle" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}
<title>{{ if (not $paginator.HasPrev) }}{{ .Site.Title }} ∴ Handpicked Albums by the Glitch Family{{ else }}{{ .Site.Title }} ∴ Albums (Page {{ $paginator.PageNumber }}) {{ end }}</title>
<meta name="description" content="Handpicked Albums by the Glitch Family">
{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}