new: Add article image preview function

This commit is contained in:
2024-12-20 12:15:44 +08:00
parent 37650c5d27
commit 5a88199fb8
3 changed files with 44 additions and 1 deletions

View File

@@ -100,6 +100,11 @@
{{ .post.content }}
</div>
</div>
<!-- image preview -->
<div class="image-preview-wrap" id="image-preview-wrap" onclick="closePreview()">
<img class="image-preview-img" id="image-preview-img" src="">
</div>
</div>
{{ end }}