forked from rDrama/rDrama
fix whitespace removal
parent
63fd0bd6ba
commit
4c770c0b87
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue