From 654506559f1bbfb114dc9d19b6e8a4ad2808cba2 Mon Sep 17 00:00:00 2001 From: Alexandru Date: Mon, 16 Sep 2024 21:52:05 +0300 Subject: [PATCH] add embeds --- templates/file.html | 7 +++++++ templates/layout.html | 1 + 2 files changed, 8 insertions(+) diff --git a/templates/file.html b/templates/file.html index d9c2b97..e33b680 100644 --- a/templates/file.html +++ b/templates/file.html @@ -36,3 +36,10 @@ {% endblock %} +{% block head %} + + +{% if file[2].split('.')[-1] in ['png', 'jpg', 'jpeg', 'gif', 'webp'] %} + +{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index b7a2d7b..08023bc 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -5,6 +5,7 @@ {% block title %}{% endblock %} + {% block head %}{% endblock %} {% block content %}{% endblock %}