1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-10-31 21:33:09 +00:00
strimertul-website/layouts/releases/_markup/render-image.html
Ash Keel 828e2a89c0
All checks were successful
continuous-integration/drone/push Build is passing
move releases to website
2023-11-12 01:49:01 +01:00

18 lines
821 B
HTML

<!-- Images that use the standard image format for markdown will be displayed in a
magnific modal popup. Use format ![alt text](/path/to/image.img) -->
<!-- Place this file in layouts > _default > _markup > render-image.html -->
<!-- Also place the image-modal.css and partial/image-modal.html appropriately. -->
<!-- Id for the image on the page is set to a random 6 numbers, chosen from 1 to 500 -->
<!-- Onclick opens the modal, and displays/overlays the the image that has the id for the
clicked image. -->
<!-- attribution appreciated. github: zjeaton web: https://froglegs.co -->
<div class="md__image">
<img
id="{{ first 6 (shuffle (seq 1 500)) }}"
src="{{ .Destination | safeURL }}"
onclick="openModal(this.id)"
alt="{{ .Text }}"
{{ with .Title }}title="{{ . }}"{{ end }}
/>
</div>