Buttons page

This commit is contained in:
Dan 2026-01-13 10:07:48 +00:00
parent 13d8d21071
commit d8cbd092b2
18 changed files with 337 additions and 73 deletions

View file

@ -0,0 +1,21 @@
<!-- prettier-ignore -->
{{ $src := .src }}
{{ $alt := .alt | default "" }}
{{ $width := .width | default "800x" }}
<figure class="blog-img-container">
{{ with .page.Resources.GetMatch $src }}
{{ $resized := .Resize $width }}
<img src="{{ $resized.RelPermalink }}" alt="{{ $alt }}" loading="lazy" class="blog-img" />
{{ else }}
{{ with resources.Get $src }}
{{ $resized := .Resize $width }}
<img src="{{ $resized.RelPermalink }}" alt="{{ $alt }}" loading="lazy" class="blog-img" />
{{ else }}
<img src="{{ $src }}" alt="{{ $alt }}" loading="lazy" class="blog-img" />
{{ end }}
{{ end }}
{{ if $alt }}
<figcaption class="blog-img-caption">{{ $alt }}</figcaption>
{{ end }}
</figure>

View file

@ -4,9 +4,7 @@
&nbsp;&bull;&nbsp;
<a href="https://neocities.org/site/ritualsh" target="_blank"
>Follow on Neocities</a
>
<a href="/guestbook">Sign My Guestbook</a>
&nbsp;&bull;&nbsp;