2022-10-21 18:39:45 +00:00
|
|
|
{% macro cf_2fa_verify() %}
|
2022-11-11 13:52:18 +00:00
|
|
|
{% if SITE == 'rdrama.net' %}
|
2022-10-21 18:39:45 +00:00
|
|
|
<meta name="cf-2fa-verify" content="4f40ca1ca249313">
|
|
|
|
{% elif SITE == 'watchpeopledie.tv' %}
|
|
|
|
<meta name="cf-2fa-verify" content="372aba5b9338e00">
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro javascript() %}
|
2022-11-18 19:16:40 +00:00
|
|
|
<script defer src="{{'js/vendor/bootstrap.js' | asset}}"></script>
|
2022-10-21 18:39:45 +00:00
|
|
|
<script defer src="{{'js/core.js' | asset}}"></script>
|
2023-03-17 14:23:42 +00:00
|
|
|
{% if v and v.admin_level %}
|
|
|
|
<script defer src="{{'js/admin/core.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% macro page_meta(title=none) %}
|
2023-03-04 15:45:37 +00:00
|
|
|
{% if 'post/' in request.path and p %}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% 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 %}
|
|
|
|
|
2023-03-04 15:45:37 +00:00
|
|
|
{% 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 %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
2022-11-17 21:20:21 +00:00
|
|
|
{% elif '@' in request.path and u %}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% set author, a_author, published, url, title, image, section =
|
2022-12-07 09:03:02 +00:00
|
|
|
'@'~u.username,
|
|
|
|
'@'~u.username,
|
2022-11-18 19:44:05 +00:00
|
|
|
u.created_date,
|
|
|
|
u.url,
|
2022-12-07 09:03:02 +00:00
|
|
|
u.username ~ "'s profile",
|
2022-11-18 19:44:05 +00:00
|
|
|
u.banner_url,
|
2022-12-07 09:03:02 +00:00
|
|
|
u.username ~ "'s profile" %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
{% set description %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{{u.coins}} coins - Joined {{u.created_date}} -
|
|
|
|
{%- if u.stored_subscriber_count >=1 and not u.is_private -%}
|
2022-11-17 21:08:39 +00:00
|
|
|
{{u.stored_subscriber_count}} Followers -
|
2022-11-21 08:52:22 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- if not u.is_private -%}
|
2023-02-28 17:54:01 +00:00
|
|
|
{{0 if u.shadowbanned else u.real_post_count(v)}}
|
2022-11-17 21:08:39 +00:00
|
|
|
Posts -
|
2023-02-28 17:54:01 +00:00
|
|
|
{{0 if u.shadowbanned else u.real_comment_count(v)}}
|
2022-11-17 21:08:39 +00:00
|
|
|
Comments
|
2022-11-21 08:52:22 +00:00
|
|
|
{%- endif -%}
|
2023-10-05 10:09:58 +00:00
|
|
|
{% if u.bio and can_see(v, u) %}
|
2022-11-17 21:08:39 +00:00
|
|
|
- {{u.bio}}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% endset %}
|
2023-10-07 17:55:50 +00:00
|
|
|
{% elif hole %}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% set title, description =
|
2023-10-07 17:55:50 +00:00
|
|
|
'/h/'+hole.name, hole.sidebar if hole.sidebar %}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
2023-12-22 20:14:21 +00:00
|
|
|
<link rel="icon" type="image/webp" href="/icon.webp?x=7">
|
2023-04-25 14:34:09 +00:00
|
|
|
|
2023-06-30 19:39:19 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
|
2022-11-17 21:08:39 +00:00
|
|
|
<meta name="thumbnail" content="{{'site_preview.webp' | asset_siteimg}}">
|
|
|
|
<meta name="description" content="{{DESCRIPTION}}">
|
|
|
|
|
2022-10-21 18:39:45 +00:00
|
|
|
<meta property="og:type" content="article">
|
|
|
|
<meta property="og:site_name" content="{{SITE}}">
|
|
|
|
<meta property="og:url" content="{{request.full_path}}">
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
<meta property="og:title" content="{{title}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
<meta property="og:author" name="author" content="{{author | default(SITE_FULL, true)}}">
|
2022-12-07 09:03:02 +00:00
|
|
|
<meta property="og:description" name="description" content="{{description | default(SITE_NAME ~ ' - ' ~ DESCRIPTION)}}">
|
2022-11-18 20:37:30 +00:00
|
|
|
|
|
|
|
{% if not comment_info %}
|
|
|
|
<meta property="og:image" content="{{image | default('site_preview.webp' | asset_siteimg)}}">
|
2022-11-21 08:52:22 +00:00
|
|
|
{% if video %}<meta property="og:video" content="{{video}}">{% endif %}
|
|
|
|
{% if audio %}<meta property="og:audio" content="{{audio}}">{% endif %}
|
2022-11-18 20:39:36 +00:00
|
|
|
<meta name="twitter:image" content="{{image | default('site_preview.webp' | asset_siteimg)}}">
|
2022-11-18 20:37:30 +00:00
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
<meta property="og:article:author" content="{{a_author}}">
|
|
|
|
<meta property="og:article:published_time" content="{{published}}">
|
|
|
|
<meta property="og:article:modified_time" content="{{modified}}">
|
|
|
|
<meta property="og:article:section" content="{{section}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
<meta name="twitter:site" content="{{SITE_FULL}}">
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
<meta name="twitter:title" content="{{title}}">
|
|
|
|
<meta name="twitter:creator" content="{{author | default(SITE_FULL)}}">
|
2022-12-07 09:03:02 +00:00
|
|
|
<meta name="twitter:description" content="{{description | default(SITE_NAME ~ ' - ' ~ DESCRIPTION)}}">
|
2022-11-17 21:08:39 +00:00
|
|
|
<meta name="twitter:url" content="{{url}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2023-12-24 21:16:45 +00:00
|
|
|
{% macro stylesheets() %}
|
2022-10-31 22:35:47 +00:00
|
|
|
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% if v %}
|
2023-06-23 11:07:47 +00:00
|
|
|
{% if v.chud %}
|
|
|
|
<link rel="stylesheet" href="{{('css/chud.css') | asset}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
2023-12-24 21:16:45 +00:00
|
|
|
{% if not IS_FISTMAS() %}
|
2022-12-07 17:53:29 +00:00
|
|
|
{% if v.theme == 'classic_dark' %}
|
2023-09-26 16:24:27 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/themes/classic.css') | asset}}">
|
2022-12-07 08:23:03 +00:00
|
|
|
{% endif %}
|
2023-09-28 23:58:09 +00:00
|
|
|
|
|
|
|
{% if IS_HOMOWEEN() %}
|
|
|
|
<link rel="stylesheet" href="{{('css/themes/midnight.css') | asset}}">
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" href="{{('css/themes/'~v.theme~'.css') | asset}}">
|
|
|
|
{% endif %}
|
|
|
|
|
2022-10-21 18:39:45 +00:00
|
|
|
{% if v.themecolor == '30409f' %}
|
2022-12-29 14:20:27 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/30409f.css') | asset}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2023-09-26 16:24:27 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/themes/'~DEFAULT_THEME~'.css') | asset}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
2022-12-07 08:23:03 +00:00
|
|
|
|
2023-10-06 17:31:09 +00:00
|
|
|
{% if not (v and v.poor) %}
|
|
|
|
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
|
|
|
|
{% endif %}
|
2022-10-21 18:39:45 +00:00
|
|
|
|
2023-09-28 23:58:09 +00:00
|
|
|
{% if IS_HOMOWEEN() %}
|
2023-10-01 08:15:50 +00:00
|
|
|
<link rel="stylesheet" href="{{'events/homoween/css/main_homoween.css' | asset}}">
|
2023-10-11 14:44:28 +00:00
|
|
|
{% elif IS_FISTMAS() %}
|
2023-10-01 08:15:50 +00:00
|
|
|
<link rel="stylesheet" href="{{'events/fistmas/css/main_fistmas.css' | asset}}">
|
2022-12-19 01:20:14 +00:00
|
|
|
|
2023-07-02 22:55:56 +00:00
|
|
|
{% if v and v.theme in LIGHT_THEMES %}
|
2023-04-25 15:59:16 +00:00
|
|
|
<link rel="stylesheet" href="{{'events/fistmas/css/themes/light.css'| asset}}">
|
2023-07-02 22:55:56 +00:00
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" href="{{'events/fistmas/css/themes/dark.css'| asset}}">
|
2022-12-19 01:20:14 +00:00
|
|
|
{% endif %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% endif %}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-11-28 22:48:15 +00:00
|
|
|
{% macro stylesheets_lower() %}
|
2022-12-05 05:01:20 +00:00
|
|
|
{% if not (request.path.startswith('/@') and u) %}
|
2023-09-26 20:09:38 +00:00
|
|
|
{% if (v and v.background) or (SITE_NAME == 'rDrama' and v and v.chud) %}
|
2022-12-30 12:17:44 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
|
2022-12-05 04:05:20 +00:00
|
|
|
{% endif %}
|
2022-11-28 22:48:15 +00:00
|
|
|
{% endif %}
|
2023-12-24 21:25:47 +00:00
|
|
|
|
|
|
|
{% if hole and hole.css and not request.path.endswith('settings') and not request.values.get('nocss') %}
|
|
|
|
<link rel="stylesheet" href="/h/{{hole}}/css">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if v and (v.css or v.background) and not request.path.startswith('/settings') %}
|
|
|
|
<link rel="stylesheet" href="/@{{v.username}}/css">
|
|
|
|
{% endif %}
|
2022-11-28 22:48:15 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-10-21 18:39:45 +00:00
|
|
|
{% macro seo() %}
|
2022-11-17 21:08:39 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-touch-fullscreen" content="yes">
|
2023-06-30 19:39:19 +00:00
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
2022-11-17 21:08:39 +00:00
|
|
|
<meta name="format-detection" content="telephone=no">
|
2023-06-30 19:39:19 +00:00
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1, viewport-fit=cover">
|
2022-10-21 18:39:45 +00:00
|
|
|
|
2023-12-22 20:14:21 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/icon.webp?x=7">
|
2023-07-22 11:26:08 +00:00
|
|
|
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?x=8">
|
2023-12-22 20:14:21 +00:00
|
|
|
<link rel="mask-icon" href="/icon.webp?x=7">
|
|
|
|
<link rel="shortcut icon" href="/icon.webp?x=7">
|
2022-10-21 18:39:45 +00:00
|
|
|
<meta name="apple-mobile-web-app-title" content="{{SITE_NAME}}">
|
|
|
|
<meta name="application-name" content="{{SITE_NAME}}">
|
|
|
|
<meta name="msapplication-TileColor" content="#{% if v %}{{v.themecolor}}{% else %}{{DEFAULT_COLOR}}{% endif %}">
|
2023-12-22 20:14:21 +00:00
|
|
|
<meta name="msapplication-config" content="/assets/browserconfig.xml?x=7">
|
2023-10-11 14:44:28 +00:00
|
|
|
<meta name="theme-color" content="#{{primary}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% for size in ('320x480', '640x960', '640x1136', '750x1334', '768x1004', '828x1792',
|
|
|
|
'1024x748', '1024x768', '1125x2436', '1242x2208', '1356x2048',
|
|
|
|
'1668x2224', '1792x828', '2048x1496', '2048x2732', '2208x1242',
|
|
|
|
'2224x1668', '2436x1125', '2668x1242', '2737x2048') %}
|
2023-12-22 20:14:21 +00:00
|
|
|
<link rel="apple-touch-startup-image" sizes="{{size}}" href="/icon.webp?x=7">
|
2022-11-21 08:52:22 +00:00
|
|
|
{% endfor %}
|
2022-11-01 00:14:24 +00:00
|
|
|
{% endmacro %}
|