forked from rDrama/rDrama
1
0
Fork 0

fix logged-out banner

master
Aevann 2023-08-17 05:01:55 +03:00
parent ac235fec75
commit 9ba9dea348
1 changed files with 2 additions and 2 deletions

View File

@ -44,14 +44,14 @@
{%- if not v and os_path.exists(path ~ "/cached.webp") -%} {%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %} {% set banner_url = 'cached.webp' | asset_siteimg %}
{% elif os_path.exists(path ~ "/banners") -%} {% elif os_path.exists(path ~ "/banners") -%}
{% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %} {% set banner_url = SITE_FULL_IMAGES ~ macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
{% else -%} {% else -%}
{% set banner_url = 'banner.webp' | asset_siteimg %} {% set banner_url = 'banner.webp' | asset_siteimg %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% macro img_element() %} {% macro img_element() %}
<img data-nonce="{{g.nonce}}" data-onclick="{{expand|default('expandImage()')}}" class="{{class|default('site-banner')}}" alt="{{alt|default('site banner')}}" src="{{SITE_FULL_IMAGES}}{{banner_url}}"> <img data-nonce="{{g.nonce}}" data-onclick="{{expand|default('expandImage()')}}" class="{{class|default('site-banner')}}" alt="{{alt|default('site banner')}}" src="{{banner_url}}">
{% endmacro %} {% endmacro %}
{% if sub and sub.has_banners %} {% if sub and sub.has_banners %}