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 %}