Rename shortcode to 'dither'

This commit is contained in:
David Eisinger
2024-02-02 00:34:17 -05:00
parent 92cfe1e759
commit a6c291020c
16 changed files with 50 additions and 50 deletions

View File

@@ -0,0 +1,12 @@
{{ $file := printf "%s%s" .Page.RelPermalink (.Get 0) }}
{{ $geo := .Get 1 }}
{{ $img := resources.GetRemote (printf "%s%s?geo=%s" (getenv "DITHER_SERVER") $file $geo) }}
<a href="{{ $img.RelPermalink }}">
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
{{ with .Inner }}
<figcaption>
{{ . }}
</figcaption>
{{ end }}
</a>