Backgrounds

This commit is contained in:
2024-02-21 15:49:44 +01:00
parent ae7268736f
commit 81a60804b1
10 changed files with 113 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
{% load static %}
body {
{% if background.image %}
background-image: url('{{background.image.url}}');
{% if not background.repeat %}background-repeat: no-repeat;{% endif %}
{% else %}
background-color: {{background.color}};
{% endif %}
}