{% macro cf_2fa_verify() %}
{% if SITE == 'rdrama.net' %}
{% elif SITE == 'watchpeopledie.tv' %}
{% endif %}
{% endmacro %}
{% macro javascript() %}
{% if v and v.admin_level %}
{% endif %}
{% endmacro %}
{% macro page_meta(title=none) %}
{% if 'post/' in request.path and p %}
{% if not v_forbid_deleted -%}
{% set image = p.thumb_url if p.has_thumb %}
{% set image = p.realurl(v) if p.is_image %}
{% set video = p.realurl(v) if p.is_video %}
{% set audio = p.realurl(v) if p.is_audio %}
{% endif %}
{% if comment_info and not comment_info.is_banned and not comment_info.deleted_utc %}
{% set p, title = comment_info, ['@', comment_info.author_name, ' comments on ',
'"', title, '"'] | join %}
{% endif %}
{% set author, description, a_author, published, modified, url =
'@'+p.author_name, p.plainbody(v), '@'+p.author_name,
p.created_datetime, p.edited_string, p.permalink %}
{% elif '@' in request.path and u %}
{% set author, a_author, published, url, title, image, section =
'@'~u.username,
'@'~u.username,
u.created_date,
u.url,
u.username ~ "'s profile",
u.banner_url,
u.username ~ "'s profile" %}
{% set description %}
{{u.coins}} coins - Joined {{u.created_date}} -
{%- if u.stored_subscriber_count >=1 and not u.is_private -%}
{{u.stored_subscriber_count}} Followers -
{%- endif -%}
{%- if not u.is_private -%}
{{0 if u.shadowbanned else u.real_post_count(v)}}
Posts -
{{0 if u.shadowbanned else u.real_comment_count(v)}}
Comments
{%- endif -%}
{% if u.bio and u.can_see_my_shit %}
- {{u.bio}}
{% endif %}
{% endset %}
{% elif sub %}
{% set title, description =
'/h/'+sub.name, sub.sidebar if sub.sidebar %}
{% endif %}
{% if not comment_info %}
{% if video %}{% endif %}
{% if audio %}{% endif %}
{% endif %}
{% endmacro %}
{% macro stylesheets(include_user_css) %}
{% if v %}
{% if v.chud %}
{% endif %}
{% if include_user_css and not IS_FISTMAS() %}
{% if v.theme == 'classic_dark' %}
{% endif %}
{% if IS_HOMOWEEN() %}
{% else %}
{% endif %}
{% if (v.css or v.background) and not request.path.startswith('/settings') %}
{% endif %}
{% if v.themecolor == '30409f' %}
{% endif %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% if IS_HOMOWEEN() %}
{% endif %}
{% if sub and sub.css and not request.path.endswith('settings') and not request.values.get('nocss') %}
{% endif %}
{% if IS_FISTMAS() %}
{% if v and v.theme in LIGHT_THEMES %}
{% else %}
{% endif %}
{% endif %}
{% endmacro %}
{% macro stylesheets_lower() %}
{% if not (request.path.startswith('/@') and u) %}
{% if (v and v.background) or (SITE_NAME == 'rDrama' and v and v.chud) %}
{% endif %}
{% endif %}
{% endmacro %}
{% macro seo() %}
{% for size in ('320x480', '640x960', '640x1136', '750x1334', '768x1004', '828x1792',
'1024x748', '1024x768', '1125x2436', '1242x2208', '1356x2048',
'1668x2224', '1792x828', '2048x1496', '2048x2732', '2208x1242',
'2224x1668', '2436x1125', '2668x1242', '2737x2048') %}
{% endfor %}
{% endmacro %}