Fix fistmas sidebar on WPD

Didn't work before because WPD has a seperate fistmas map.
pull/219/head
G-tix 2023-12-21 09:13:40 +00:00
parent c1bae0949e
commit e9ee4809d8
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
</h5>
</a>
{% if IS_EVENT() %}
{% if IS_FISTMAS() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar/" ~ SITE_NAME ) %}
{% elif IS_EVENT() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar") %}
{%- elif v -%}
{%- set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") -%}