{%- if v -%}
{%- set art_path = 'assets/images/WPD/sidebar' -%}
{%- set art_image = '/' + art_path + '/' + listdir('files/' + art_path)|random() + '?v=45' -%}
{%- else -%}
{%- set art_image = '/i/' + SITE_NAME + '/sidebar.webp?v=3000' -%}
{%- endif -%}
{% if request.path != '/sidebar' %}
{% endif %}
{% if sub and sub.sidebar_html %}
{{sub.sidebar_html|safe}}
{% endif %}