summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index df0f76a..ebd3703 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -206,6 +206,24 @@
{% block content required %}
{% endblock content %}
</main>
+ <dialog id="image-viewer" aria-label="Enlarged image" data-pagefind-ignore>
+ <button type="button"
+ data-action="previous"
+ aria-label="Previous gallery image"
+ hidden>‹</button>
+ <figure>
+ <img alt="">
+ <figcaption hidden></figcaption>
+ </figure>
+ <button type="button"
+ data-action="next"
+ aria-label="Next gallery image"
+ hidden>›</button>
+ <button type="button"
+ data-action="close"
+ aria-label="Close enlarged image"
+ autofocus>×</button>
+ </dialog>
<footer>
{% block site_footer %}
<section aria-label="Follow me">
@@ -239,6 +257,7 @@
</footer>
{% endblock body %}
{% block scripts %}
+ <script src="{{ '/static/js/image-viewer.js' | asseturl }}" defer></script>
<script src="{{ '/static/vendor/pagefind/pagefind-component-ui.js' | asseturl }}"
type="module"></script>
{% if needs_trail_assets | default(false) %}