forked from rDrama/rDrama
1
0
Fork 0

fix whitespace removal

master
gooseman 2022-11-20 20:57:20 -08:00
parent 63fd0bd6ba
commit 4c770c0b87
1 changed files with 12 additions and 12 deletions

View File

@ -10,21 +10,21 @@
</a>
{% endmacro -%}
{%- macro live_banner() %}
{%- macro live_banner() -%}
{% set path = "files/assets/images/" + SITE_NAME %}
{% if not v and os_path.exists(path + "/cached.webp") %}
{{ 'cached.webp' | asset_siteimg }}
{% elif os_path.exists(path + "/banners") %}
{{ random_image("banners") }}
{% else %}
{{ 'banner.webp' | asset_siteimg }}
{%- if not v and os_path.exists(path + "/cached.webp") -%}
{{ 'cached.webp' | asset_siteimg -}}
{% elif os_path.exists(path + "/banners") -%}
{{ random_image("banners") -}}
{% else -%}
{{ 'banner.webp' | asset_siteimg -}}
{% endif %}
{% endmacro -%}
{%- endmacro -%}
{%- macro random_image(assetdir) %}
{% set path = "assets/images/" + SITE_NAME + "/" + assetdir %}
{{ "/" + path + "/" + listdir('files/' + path)|random() + '?v=45' }}
{% endmacro -%}
{%- macro random_image(assetdir) -%}
{% set path = "assets/images/" + SITE_NAME + "/" + assetdir -%}
{{- "/" + path + "/" + listdir('files/' + path)|random() + '?v=45' }}
{%- endmacro -%}
{% macro post_meta(p) %}
{% if p.sub %}