Check if the page is IPv6.Blog and load header img accordingly

This commit is contained in:
PCoder 2019-05-05 17:42:15 +02:00
parent 829261af88
commit 3b41f2a149
2 changed files with 7 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

View file

@ -2,8 +2,10 @@
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header"
{% if request.current_page.pagemeta.image.url %}
style="background-image: url('{{ request.current_page.pagemeta.image.url }}');"
{% if request.current_page.ungleichpage %}
style="background-image: url('{{ request.current_page.ungleichpage.image.url }}');"
{% elif request.GET.page_title == 'IPv6.Blog' %}
style="background-image: url('{% static 'blog.ungleich.ch/img/ipv6-train-tunnel-darkened-bg.jpg' %}');"
{% else %}
style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg' %}');"
{% endif %}