Quellcode durchsuchen

Adds background

sValo vor 8 Jahren
Ursprung
Commit
1fbfee56ce

BIN
content/images/background.jpg


+ 1 - 1
pelicanconf.py

@@ -41,7 +41,7 @@ PAGE_SAVE_AS = '{slug}.html'
 PAGE_LANG_URL = '{slug}.{lang}.html'
 PAGE_LANG_SAVE_AS = '{slug}.{lang}.html'
 
-#PAGE_BACKGROUND = 'images/background.jpg'
+PAGE_BACKGROUND = 'images/background.jpg'
 THEME = 'themes/nest/'
 # Confs relative to the theme nest
 NEST_HEADER_IMAGES = 'banner.png'

+ 1 - 1
themes/nest/templates/base.html

@@ -98,7 +98,7 @@
     {% endblock head %}
     </head>
 
-    <body>
+    <body {% if PAGE_BACKGROUND %}  style="background-image: url('{{ PAGE_BACKGROUND }}');" {% endif %} >
 
         <!-- Header -->
         {% block headerstyle %}

+ 1 - 1
themes/nest/templates/page.html

@@ -27,7 +27,7 @@
 {% endblock header %}
 
 {% block content %}
-    <div class="container content">
+    <div style="text-align: justify;" class="container content background-image: {{ PAGE_BACKGROUND }}">
         {{ page.content }}
     </div>
 {% endblock %}