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">
|
|
|
|
{% elif SITE == 'pcmemes.net' %}
|
|
|
|
<meta name="cf-2fa-verify" content="bf22ffe56e4bcda">
|
|
|
|
{% 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>
|
2022-11-22 22:05:31 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
if (window.matchMedia('(display-mode: minimal-ui)')['matches']) {
|
2022-11-22 22:12:32 +00:00
|
|
|
const links = document.querySelectorAll('a[data-target="t"]');
|
2022-11-22 22:05:31 +00:00
|
|
|
for (const link of links) {
|
|
|
|
link.removeAttribute("target");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% macro page_meta(title=none) %}
|
2022-11-17 21:20:21 +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 %}
|
|
|
|
|
|
|
|
{% 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: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-11-18 19:44:05 +00:00
|
|
|
'@'+u.username,
|
|
|
|
'@'+u.username,
|
|
|
|
u.created_date,
|
|
|
|
u.url,
|
2022-11-21 08:52:22 +00:00
|
|
|
u.username + "'s profile",
|
2022-11-18 19:44:05 +00:00
|
|
|
u.banner_url,
|
2022-11-21 08:52:22 +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 -%}
|
2022-11-17 21:08:39 +00:00
|
|
|
{{0 if u.shadowbanned else u.post_count}}
|
|
|
|
Posts -
|
|
|
|
{{0 if u.shadowbanned else u.comment_count}}
|
|
|
|
Comments
|
2022-11-21 08:52:22 +00:00
|
|
|
{%- endif -%}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% if u.bio %}
|
|
|
|
- {{u.bio}}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
{% endset %}
|
|
|
|
{% elif sub %}
|
|
|
|
{% set title, description =
|
2022-11-17 21:25:10 +00:00
|
|
|
'/h/'+sub.name, sub.sidebar if sub.sidebar %}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<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-11-17 21:08:39 +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)}}">
|
|
|
|
<meta name="twitter:description" content="{{description | default(SITE_NAME + ' - ' + DESCRIPTION)}}">
|
|
|
|
<meta name="twitter:url" content="{{url}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-11-17 21:08:39 +00:00
|
|
|
{% macro stylesheets(include_user_css) %}
|
2022-10-31 22:35:47 +00:00
|
|
|
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
2022-10-21 22:46:17 +00:00
|
|
|
<link id="favicon" rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
2022-11-28 16:55:16 +00:00
|
|
|
|
|
|
|
{% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %}
|
|
|
|
{% set background = '/assets/images/backgrounds/glitter/1.webp?v=3' %}
|
|
|
|
{% elif v and v.background %}
|
2022-11-28 22:26:39 +00:00
|
|
|
{% set background = '/assets/images/backgrounds/' + v.background %}
|
2022-11-28 16:55:16 +00:00
|
|
|
{% endif %}
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background:url({{background}}) center center fixed;
|
|
|
|
background-color: var(--background);
|
|
|
|
{% if 'anime' not in background %}background-size: cover;{% endif %}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2022-10-21 18:39:45 +00:00
|
|
|
{% if v %}
|
|
|
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
|
|
|
{% if v.agendaposter %}
|
|
|
|
<style>
|
|
|
|
html {
|
|
|
|
cursor:url('/i/dildo.webp?v=2000'), auto;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endif %}
|
|
|
|
{% if include_user_css %}
|
|
|
|
<link rel="stylesheet" href="{{('css/'~v.theme~'.css') | asset}}">
|
|
|
|
{% if v.css and not request.path.startswith('/settings/css') %}
|
|
|
|
<style>
|
|
|
|
{{v.css | safe}}
|
|
|
|
</style>
|
|
|
|
{% endif %}
|
|
|
|
{% if v.themecolor == '30409f' %}
|
|
|
|
<style>
|
|
|
|
p a {
|
|
|
|
color: #2a96f3;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endif %}
|
2022-10-23 00:11:07 +00:00
|
|
|
{% else %}
|
|
|
|
{{default_theme()}}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2022-10-23 00:11:07 +00:00
|
|
|
{{default_theme()}}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endif %}
|
2022-10-23 00:11:07 +00:00
|
|
|
<link rel="stylesheet" href="{{'css/awards.css' | asset}}">
|
2022-10-21 18:39:45 +00:00
|
|
|
|
|
|
|
{% if sub and sub.css and not request.path.endswith('settings') and not request.values.get('nocss') %}
|
|
|
|
<link rel="stylesheet" href="/h/{{sub}}/css" type="text/css">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if SITE_NAME == 'rDrama' %}
|
|
|
|
<link rel="stylesheet" href="{{'css/rDrama.css' | asset}}">
|
|
|
|
{% endif %}
|
2022-11-17 21:08:39 +00:00
|
|
|
|
|
|
|
{% if 'chat' in request.path %}
|
2022-11-20 22:16:49 +00:00
|
|
|
{% if IS_LOCALHOST %}
|
2022-11-17 21:08:39 +00:00
|
|
|
<link rel="stylesheet" href="https://rdrama.net/assets/css/chat_done.css">
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" href="{{'css/chat_done.css' | asset}}">
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2022-10-21 18:39:45 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-10-23 00:11:07 +00:00
|
|
|
{% macro default_theme() %}
|
2022-11-17 21:08:39 +00:00
|
|
|
<style>:root{--primary:#{{DEFAULT_COLOR}}}</style>
|
2022-10-23 00:11:07 +00:00
|
|
|
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
|
|
|
|
{% 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">
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
2022-10-21 18:39:45 +00:00
|
|
|
|
2022-11-17 21:08:39 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{'icon.webp' | asset_siteimg}}">
|
2022-11-21 19:13:43 +00:00
|
|
|
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?v=423">
|
2022-10-21 18:39:45 +00:00
|
|
|
<link rel="mask-icon" href="{{'icon.webp' | asset_siteimg}}">
|
|
|
|
<link rel="shortcut icon" href="{{'icon.webp' | asset_siteimg}}">
|
|
|
|
<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 %}">
|
|
|
|
<meta name="msapplication-config" content="/assets/browserconfig.xml?v=3009">
|
|
|
|
<meta name="theme-color" content="#{% if v %}{{v.themecolor}}{% else %}{{DEFAULT_COLOR}}{% endif %}">
|
|
|
|
|
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') %}
|
|
|
|
<link rel="apple-touch-startup-image" sizes="{{size}}" href="{{'icon.webp' | asset_siteimg}}">
|
|
|
|
{% endfor %}
|
2022-11-01 00:14:24 +00:00
|
|
|
{% endmacro %}
|