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

Add the possibility to have an publisher different than the website's creator

This commit is contained in:
Tixie 2023-07-24 15:12:47 +02:00
parent 259f6625d5
commit 97b24878bc
4 changed files with 27 additions and 4 deletions

View file

@ -8,13 +8,18 @@
background: $color-primary url("/images/triforce.svg") no-repeat;
background-position: center 10rem;
text-align: center;
color: #8f92ae;
}
.footer a:not([class]) {
text-decoration: underline;
color: inherit;
}
.footer__logo,
.footer__logo:link,
.footer__logo:visited {
display: inline-block;
color: #8f92ae;
font-size: 3rem;
font-weight: bold;
letter-spacing: 0.015em;

View file

@ -8,6 +8,10 @@ disableKinds = ["taxonomy", "taxonomyTerm"]
description = "Collection of Handpicked Albums by Guérilla.Studio"
[params.author]
name = "Guérilla.Studio"
url = "https://guerilla.studio"
[params.creator]
name = "Guérilla.Studio"
url = "https://guerilla.studio"
[imaging]
quality = 95

View file

@ -70,7 +70,7 @@
</div>
</div>
<!-- About -->
{{ if not $paginator.HasPrev }}
{{ if and (not $paginator.HasPrev) (eq .Site.Params.author.name .Site.Params.creator.name) }}
<section class="home-about">
<div class="container">
<h2 class="visually-hidden">About</h2>

View file

@ -1,5 +1,19 @@
<footer class="footer">
<a class="footer__logo" href="https://guerilla.studio">
Guérilla.Studio
<div>
{{ if (eq .Site.Params.author.name .Site.Params.creator.name) }}
A website by
{{ else }}
A website published by
{{ if isset .Site.Params.author "url" }}
<span class="semibold"><a href="{{ .Site.Params.author.url }}">{{ .Site.Params.author.name }}</a></span>
{{ else }}
<span class="semibold">{{ .Site.Params.author.name }}</span>
{{ end }}
and built by
{{ end }}
</div>
<a class="footer__logo" href="{{ .Site.Params.creator.url }}">
{{ .Site.Params.creator.name }}
</a>
</footer>