Changes to support galleries

This commit is contained in:
2026-02-09 23:20:15 +00:00
parent 49c7d3eddf
commit c5ab8f281c
6 changed files with 86 additions and 24 deletions
+13
View File
@@ -1,5 +1,18 @@
{% extends 'main.html' %}
{% block head %}
{% if metadata.gallery %}
<script>
document.addEventListener("DOMContentLoaded",function(){
post_gallery = new Viewer(document.getElementById('article'), {
'url': 'realsrc',
'title': false
});
});
</script>
{% endif %}
{% endblock %}
{% block content %}
<main>
<section id="article">