Remove more of me from the theme

This commit is contained in:
Joshua Goins 2024-10-12 14:59:49 -04:00
parent abd7ca5f91
commit c3c96d57e6
9 changed files with 20 additions and 18 deletions

View file

@ -36,6 +36,8 @@ params:
- rss-image.png - rss-image.png
author: 'redstrate' author: 'redstrate'
fediverse_url: "@redstrate@mastodon.art" fediverse_url: "@redstrate@mastodon.art"
image_host: "https://images.redstrate.com"
kofi_username: 'redstrate'
permalinks: permalinks:
blog: 'blog/:year/:month/:title/' blog: 'blog/:year/:month/:title/'

View file

@ -6,8 +6,8 @@
<hr> <hr>
{{ if (and (not $.Params.animation) (and (not (in .File.Dir "art/guest")) (and (not $.Params.threed) (not $.Params.comic) )) ) }} {{ if (and (not $.Params.animation) (and (not (in .File.Dir "art/guest")) (and (not $.Params.threed) (not $.Params.comic) )) ) }}
{{ $full := printf "https://images.redstrate.com/art/%s.avif" $.Params.slug }} {{ $full := printf "%s/art/%s.avif" $.Site.Params.image_host $.Params.slug }}
{{ $jpeg := printf "https://images.redstrate.com/art/%s.jpg" $.Params.slug }} {{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host $.Params.slug }}
<picture> <picture>
<source srcset="{{ $full }}" type="image/avif" width="{{ $.Params.width }}" height="{{ $.Params.height }}"/> <source srcset="{{ $full }}" type="image/avif" width="{{ $.Params.width }}" height="{{ $.Params.height }}"/>
@ -16,7 +16,7 @@
{{ else }} {{ else }}
{{ if $.Params.threed }} {{ if $.Params.threed }}
{{ $file := printf "https://images.redstrate.com/3d/%s.glb" $.Params.slug }} {{ $file := printf "%s/3d/%s.glb" $.Site.Params.image_host $.Params.slug }}
{{ with $file }} {{ with $file }}
{{ $cameraorbit := $.Params.orbit }} {{ $cameraorbit := $.Params.orbit }}
{{ $cameratarget := $.Params.target }} {{ $cameratarget := $.Params.target }}
@ -24,7 +24,7 @@
<model-viewer style="margin-top: 10px; margin-bottom: 10px;" class="gallery-img" alt="{{ $.Params.alt_text }}" title="{{ $.Params.alt_text }}" src="{{ . }}" shadow-intensity="1" camera-controls touch-action="pan-y" camera-orbit="{{ $cameraorbit }}" camera-target="{{ $cameratarget }}" field-of-view="{{ $fov }}"></model-viewer> <model-viewer style="margin-top: 10px; margin-bottom: 10px;" class="gallery-img" alt="{{ $.Params.alt_text }}" title="{{ $.Params.alt_text }}" src="{{ . }}" shadow-intensity="1" camera-controls touch-action="pan-y" camera-orbit="{{ $cameraorbit }}" camera-target="{{ $cameratarget }}" field-of-view="{{ $fov }}"></model-viewer>
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $file := printf "https://images.redstrate.com/animation/%s.webm" $.Params.slug }} {{ $file := printf "%s/animation/%s.webm" $.Site.Params.image_host $.Params.slug }}
{{ with $file }} {{ with $file }}
{{ if $.Params.animation }} {{ if $.Params.animation }}
<div style="text-align: center;"> <div style="text-align: center;">
@ -39,8 +39,8 @@
{{ if $.Params.comic }} {{ if $.Params.comic }}
{{ range $.Params.pages }} {{ range $.Params.pages }}
{{ $full := printf "https://images.redstrate.com/art/%s.avif" .filename }} {{ $full := printf "%s/art/%s.avif" $.Site.Params.image_host .filename }}
{{ $jpeg := printf "https://images.redstrate.com/art/%s.jpg" .filename}} {{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host .filename}}
<picture> <picture>
<source srcset="{{ $full }}" type="image/avif"/> <source srcset="{{ $full }}" type="image/avif"/>

View file

@ -12,7 +12,7 @@
{{ range first 10 (index site.Taxonomies "characters").ByCount }} {{ range first 10 (index site.Taxonomies "characters").ByCount }}
{{ $year := .Page.Title }} {{ $year := .Page.Title }}
{{ $num := .Count }} {{ $num := .Count }}
<a class="character" href="/art/characters/{{ urlize $year }}"><img class="gallery-img" width=256 height=256 src="https://images.redstrate.com/chars/{{ urlize $year }}.jpg"/><span>{{ $year }}<br>({{ $num }} artworks)</span></a> <a class="character" href="/art/characters/{{ urlize $year }}"><img class="gallery-img" width=256 height=256 src="{{ $.Site.Params.image_host }}/chars/{{ urlize $year }}.jpg"/><span>{{ $year }}<br>({{ $num }} artworks)</span></a>
{{ end }} {{ end }}
</ol> </ol>

View file

@ -14,7 +14,7 @@
{{ end }} {{ end }}
{{ if $original }} {{ if $original }}
<a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img class="gallery-img" width=256 height=256 src="https://images.redstrate.com/chars/{{ $name | urlize }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a> <a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img class="gallery-img" width=256 height=256 src="{{ $.Site.Params.image_host }}/chars/{{ $name | urlize }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
@ -28,7 +28,7 @@
{{ end }} {{ end }}
{{ if not $original }} {{ if not $original }}
<a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img class="gallery-img" width=256 height=256 src="https://images.redstrate.com/chars/{{ $name | urlize }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a> <a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img class="gallery-img" width=256 height=256 src="{{ $.Site.Params.image_host }}/chars/{{ $name | urlize }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -31,8 +31,8 @@
<a href="{{ $path }}" aria-label="Click to view details {{ $year }}" class="no-decoration"> <a href="{{ $path }}" aria-label="Click to view details {{ $year }}" class="no-decoration">
{{ $title := .Title }} {{ $title := .Title }}
{{ $full := printf "https://images.redstrate.com/thumb/%s.avif" $filename_without_ext }} {{ $full := printf "%s/thumb/%s.avif" $.Site.Params.image_host $filename_without_ext }}
{{ $jpeg := printf "https://images.redstrate.com/thumb/%s.jpg" $filename_without_ext }} {{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host $filename_without_ext }}
<picture> <picture>
<source srcset="{{ $full }}" type="image/avif"/> <source srcset="{{ $full }}" type="image/avif"/>
@ -48,6 +48,6 @@
</figure> </figure>
{{ end }} {{ end }}
<p style="text-align: center">{{ .resolution }}</p> <p style="text-align: center">{{ .resolution }}</p>
<p style="text-align: center"><a href="https://images.redstrate.com/wallpapers/{{ .art }}.png">Download PNG ({{ .size }})</a></p> <p style="text-align: center"><a href="{{ $.Site.Params.image_host }}/wallpapers/{{ .art }}.png">Download PNG ({{ .size }})</a></p>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -4,7 +4,7 @@
{{ range (where .Site.RegularPages "Type" "in" "art").GroupByDate "2006" }} {{ range (where .Site.RegularPages "Type" "in" "art").GroupByDate "2006" }}
{{ with .Key }} {{ with .Key }}
<a class="no-decoration" href="/art/{{ . }}"> <a class="no-decoration" href="/art/{{ . }}">
{{ $thumbp := printf "https://images.redstrate.com/year-thumbs/%s.webp" . }} {{ $thumbp := printf "%s/year-thumbs/%s.webp" $.Site.Params.image_host . }}
<img width="256" height="128" title="{{ . }}" alt="A thumbnail of {{ . }}'s art with the text in the center." class="gallery-img article-img" src="{{ $thumbp }}"> <img width="256" height="128" title="{{ . }}" alt="A thumbnail of {{ . }}'s art with the text in the center." class="gallery-img article-img" src="{{ $thumbp }}">
</a> </a>
{{ end }} {{ end }}

View file

@ -29,8 +29,8 @@
{{ $title := .Title }} {{ $title := .Title }}
{{ if $use_newformat }} {{ if $use_newformat }}
{{ $full := printf "https://images.redstrate.com/thumb/%s.avif" $filename_without_ext }} {{ $full := printf "%s/thumb/%s.avif" $.Site.Params.image_host $filename_without_ext }}
{{ $jpeg := printf "https://images.redstrate.com/thumb/%s.jpg" $filename_without_ext }} {{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host $filename_without_ext }}
<picture> <picture>
<source srcset="{{ $full }}" type="image/avif"/> <source srcset="{{ $full }}" type="image/avif"/>

View file

@ -1,7 +1,7 @@
{{/* Partial used to display a thumbnail of an artwork. */}} {{/* Partial used to display a thumbnail of an artwork. */}}
{{ $full := printf "https://images.redstrate.com/thumb/%s.avif" .Params.slug }} {{ $full := printf "%s/thumb/%s.avif" $.Site.Params.image_host .Params.slug }}
{{ $jpeg := printf "https://images.redstrate.com/thumb/%s.jpg" .Params.slug }} {{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host .Params.slug }}
<a aria-label="Gallery Item" class="no-decoration grid-item" href="{{ .RelPermalink }}"> <a aria-label="Gallery Item" class="no-decoration grid-item" href="{{ .RelPermalink }}">

View file

@ -1 +1 @@
<iframe credentialless id='kofiframe' src='https://ko-fi.com/redstrate/?hidefeed=true&widget=true&embed=true&preview=true' style='border:none;width:100%;padding:4px;background:#f9f9f9;' height='600' title='redstrate'></iframe> <iframe credentialless id='kofiframe' src='https://ko-fi.com/{{ $.Site.Params.kofi_username }}/?hidefeed=true&widget=true&embed=true&preview=true' style='border:none;width:100%;padding:4px;background:#f9f9f9;' height='600' title='{{ $.Site.Params.kofi_username }}'></iframe>