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

View File

@ -35,7 +35,7 @@ nav .fancy-title{
text-shadow: none; text-shadow: none;
} }
article>div p:not(.nodrop):first-of-type::first-letter { article>div>p:not(.nodrop):first-of-type::first-letter {
color: firebrick; color: firebrick;
padding: 0 .3rem; padding: 0 .3rem;
margin: 0 .3rem 0 0; margin: 0 .3rem 0 0;

View File

@ -2,6 +2,7 @@
{{- $cp := where .Site.RegularPages ".Params.categories" "intersect" site.Params.cyoa -}} {{- $cp := where .Site.RegularPages ".Params.categories" "intersect" site.Params.cyoa -}}
{{- $np := where $cp ".Params.prev" "intersect" (slice $pageRel ) }} {{- $np := where $cp ".Params.prev" "intersect" (slice $pageRel ) }}
{{if or (isset .Params "prev") $np }} {{if or (isset .Params "prev") $np }}
<div class="bg-white br3 mb3 pa4 gray"> <div class="bg-white br3 mb3 pa4 gray">
<h1 class="f3 near-black">Choose Your Own Adventure<h1> <h1 class="f3 near-black">Choose Your Own Adventure<h1>
@ -11,9 +12,9 @@
{{ range $np }} {{ range $np }}
<li class="list pa0"> <li class="list pa0">
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline ph3 pv0 mb2 dib black sans-serif"> <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 and (in .Params.categories "Player") (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 and (in .Params.categories "Game Master") (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 "Technical") (in $.Params.categories "Technical")}}<img src="/images/TF.svg" alt="Technical Forward" height="16px"> {{end}}
{{- .LinkTitle -}} {{- .LinkTitle -}}
</a> </a>
</li> </li>
@ -25,9 +26,9 @@
{{ with $.GetPage .}} {{ with $.GetPage .}}
<li class="list pv0 mv0"> <li class="list pv0 mv0">
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline ph3 pv0 mb2 dib black sans-serif"> <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 and (in .Params.categories "Player") (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 and (in .Params.categories "Game Master") (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 "Technical") (in $.Params.categories "Technical")}}<img src="/images/TB.svg" alt="Technical Back" height="16px"> {{end}}
{{- .LinkTitle -}} {{- .LinkTitle -}}
</a> </a>
</li> </li>

View File

@ -8,7 +8,7 @@
<div class="nested-links f5 lh-copy nested-copy-line-height"> <div class="nested-links f5 lh-copy nested-copy-line-height">
{{ $gm := or .Params.GM .Parent.Params.GM }} {{ $gm := or .Params.GM .Parent.Params.GM }}
<ul class="list"> <ul class="list">
<li>Game Master: <a href='/gmprofile/{{ $gm }}' class="link">{{ $gm }}</a></li> <li>Game Master: <a href='/gmprofile/{{ lower $gm }}' class="link">{{ $gm }}</a></li>
{{ partial "session-type.html" . }} {{ partial "session-type.html" . }}
<li>Seat reservation fee<a href="/reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on seat reservation fees" /></a>: ${{ .Params.seat_fee }} {{- if ne nil .Params.patreon.seat_fee }} (Patreons<a href="/patreon-reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on Patreon seat reservation fees" /></a> {{if .Params.patreon.seat_fee}}${{ .Params.patreon.seat_fee }}{{else}}FREE{{- end}}){{else}}NON {{ .Params.patreon.seat_fee }}{{- end}}</li> <li>Seat reservation fee<a href="/reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on seat reservation fees" /></a>: ${{ .Params.seat_fee }} {{- if ne nil .Params.patreon.seat_fee }} (Patreons<a href="/patreon-reservation-fee" ><img src="/info.png" class="w100 mw5-ns" style="width: 16px" alt="Info on Patreon seat reservation fees" /></a> {{if .Params.patreon.seat_fee}}${{ .Params.patreon.seat_fee }}{{else}}FREE{{- end}}){{else}}NON {{ .Params.patreon.seat_fee }}{{- end}}</li>
</ul> </ul>