Add image hover

If a user hovers over an image with their mouse, it will load the image
and display it in the corner.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-12 22:02:51 -07:00
parent b646509f75
commit 0d6b6ca5b5
3 changed files with 35 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ at {{post_created}}
{# Image thumbnail #}
<div class="post_image_thumbnail">
<a href="{{post.image.url}}" target="_blank">
<img src="{{post.thumbnail.url}}">
<img class="post_image" src="{{post.thumbnail.url}}" data-url="{{post.image.url}}">
</a>
</div>
{% endif %}