1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-09 14:31:51 +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" . }} {{ block "metaTitle" . }}
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<meta name="description" content="Handpicked Albums by the Glitch Family">
{{ end }} {{ end }}
<meta charset="utf-8"> <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"> <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 }}"> <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" }} {{ define "metaTitle" }}
<title>{{ .Title }} ∴ {{ .Site.Title }}</title> <title>{{ .Title }} ∴ {{ .Site.Title }}</title>
<meta name="description" content="Listen to this album on Now Playing">
{{ end }} {{ end }}
{{ define "metaSocial" }} {{ define "metaSocial" }}
{{ $original := resources.Get .Params.cover }} {{ $original := resources.Get .Params.cover }}

View file

@ -1,6 +1,7 @@
{{ define "metaTitle" }} {{ define "metaTitle" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }} {{ $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> <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 }} {{ end }}
{{ define "main" }} {{ define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }} {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}