Better image CSS

This commit is contained in:
David Eisinger
2024-01-10 22:03:23 -05:00
parent f112c400e8
commit 87f702bb3d
13 changed files with 47 additions and 72 deletions

View File

@@ -8,12 +8,10 @@
{{ end }}
<a href="{{ $orig.RelPermalink }}">
<figure>
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
{{ with .Inner }}
<figcaption>
{{ . }}
</figcaption>
{{ end }}
</figure>
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
{{ with .Inner }}
<figcaption>
{{ . }}
</figcaption>
{{ end }}
</a>