[FEAT] Allow changing header image scaling on home page

This commit is contained in:
2023-01-19 23:28:36 +00:00
parent 8427b78ba6
commit f0f03c1175
3 changed files with 13 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
{% block before_content %}
{% get_media_prefix as MEDIA_URL %}
<header class="container-fluid masthead text-white text-left"
<header class="container-fluid masthead text-white text-left {% if config.HOMEPAGE_HEADER_IMAGE_SHRINK %}masthead-shrink{% endif %}"
style="background-image: url('{{ MEDIA_URL }}{{ config.HOMEPAGE_HEADER_IMAGE }}')">
<div class="overlay"></div>