Updates to theme

This commit is contained in:
Mark Bools
2024-07-29 15:55:01 +01:00
parent 9bd317a3fb
commit d5721545d9
3 changed files with 9 additions and 8 deletions
@@ -2,6 +2,7 @@
{{- $cp := where .Site.RegularPages ".Params.categories" "intersect" site.Params.cyoa -}}
{{- $np := where $cp ".Params.prev" "intersect" (slice $pageRel ) }}
{{if or (isset .Params "prev") $np }}
<div class="bg-white br3 mb3 pa4 gray">
<h1 class="f3 near-black">Choose Your Own Adventure<h1>
@@ -11,9 +12,9 @@
{{ range $np }}
<li class="list pa0">
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline ph3 pv0 mb2 dib black sans-serif">
{{if in .Params.categories "Player"}}<img src="/images/PF.svg" alt="Player Forward" height="16px">{{end}}
{{if in .Params.categories "Game Master"}}<img src="/images/GMF.svg" alt="Game Master Forward" height="16px"> {{end}}
{{if in .Params.categories "Technical"}}<img src="/images/TF.svg" alt="Technical Forward" height="16px"> {{end}}
{{if and (in .Params.categories "Player") (in $.Params.categories "Player")}}<img src="/images/PF.svg" alt="Player Forward" height="16px">{{end}}
{{if and (in .Params.categories "Game Master") (in $.Params.categories "Game Master")}}<img src="/images/GMF.svg" alt="Game Master Forward" height="16px"> {{end}}
{{if and (in .Params.categories "Technical") (in $.Params.categories "Technical")}}<img src="/images/TF.svg" alt="Technical Forward" height="16px"> {{end}}
{{- .LinkTitle -}}
</a>
</li>
@@ -25,9 +26,9 @@
{{ with $.GetPage .}}
<li class="list pv0 mv0">
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline ph3 pv0 mb2 dib black sans-serif">
{{if in .Params.categories "Player"}}<img src="/images/PB.svg" alt="Player Back" height="16px">{{end}}
{{if in .Params.categories "Game Master"}}<img src="/images/GMB.svg" alt="Game Master Back" height="16px"> {{end}}
{{if in .Params.categories "Technical"}}<img src="/images/TB.svg" alt="Technical Back" height="16px"> {{end}}
{{if and (in .Params.categories "Player") (in $.Params.categories "Player") }}<img src="/images/PB.svg" alt="Player Back" height="16px">{{end}}
{{if and (in .Params.categories "Game Master") (in $.Params.categories "Game Master")}}<img src="/images/GMB.svg" alt="Game Master Back" height="16px"> {{end}}
{{if and (in .Params.categories "Technical") (in $.Params.categories "Technical")}}<img src="/images/TB.svg" alt="Technical Back" height="16px"> {{end}}
{{- .LinkTitle -}}
</a>
</li>