{%- macro plural(value, suffix='s') -%}
{%- if value != 1 -%}
{{suffix}}
{%- endif -%}
{%- endmacro -%}
{%- macro banner(src, href, alt, expand, class) %}
{% endmacro -%}
{%- 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("assets/images/" ~ SITE_NAME ~ "/banners") -}}
{% else -%}
{{ 'banner.webp' | asset_siteimg -}}
{% endif %}
{%- endmacro -%}
{%- macro random_image(path) -%}
{{- "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?v=45' }}
{%- endmacro -%}
{% macro post_meta(p) %}
{% if p.sub %}
{% if not HOLE_STYLE_FLAIR -%}
/h/{{p.sub}}
{%- else -%}
{{p.sub|capitalize}}
{%- endif %}
{% endif %}
{% if p.sub and p.author.exiled_from(p.sub) %}
{% endif %}
{% if p.bannedfor %}
{% endif %}
{% if p.chuddedfor %}
{% endif %}
{% for a in p.awards %}
{% endfor %}
{% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and p.author.shadowbanned %}
{% endif %}
{% if p.stickied %}
{% endif %}
{% if p.hole_pinned %}
{% endif %}
{% if p.distinguish_level %}{% endif %}
{% if p.is_pinned and request.path != '/' %}
{% endif %}
{% if p.over_18 %}+18{% endif %}
{% if p.is_bot %} {% endif %}
{% if p.is_blocking and not p.ghost %}{% endif %}
{% if p.is_blocked and not p.ghost %}{% endif %}
{% if p.private %}Draft{% endif %}
{% if p.active_flags(v) %}{% endif %}
{% if p.ghost %}
👻
{% else %}
{% if FEATURES['PATRON_ICONS'] and p.author.patron %}
{% endif %}
{% if FEATURES['HOUSES'] and p.author.house %}
{% endif %}
{% if p.author.verified %}
{% endif %}
{% if p.author.hat_active(v)[0] -%}
{%- endif %}
{{text2|safe}}
{% endif %}{{text1|safe}}
Jump in the discussion.
No email address required.