same as last commit
parent
e4b102873d
commit
fee6e7150b
|
@ -5,7 +5,7 @@
|
|||
{% include "modals/expanded_image.html" %}
|
||||
{% if err or '@' not in request.path %}
|
||||
{% if EVENT_BANNER and not sub %}
|
||||
{% include 'event/' + EVENT_BANNER %}
|
||||
{% include 'event/' ~ EVENT_BANNER %}
|
||||
{% else %}
|
||||
{% if err and SITE_NAME == 'rDrama' %}
|
||||
{% set src = "banner_error.webp" | asset_siteimg %}
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
{% endif %}
|
||||
<li class="mt-3">
|
||||
{% if has_sidebar %}
|
||||
{% include "sidebar_" + SITE_NAME + ".html" %}
|
||||
{% include "sidebar_" ~ SITE_NAME ~ ".html" %}
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{%- extends 'login/authforms.html' -%}
|
||||
{% block pagetitle -%}
|
||||
{{ref_user.username + " invites you to " + SITE_NAME if ref_user else "Sign Up"}}
|
||||
{{ref_user.username ~ " invites you to " ~ SITE_NAME if ref_user else "Sign Up"}}
|
||||
{%- endblock %}
|
||||
{% block pagetype %}login{% endblock %}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<h1 class="text-muted text-uppercase">Sidebar</h5>
|
||||
<div id="sidebar" class="my-3">
|
||||
{% if has_sidebar %}
|
||||
{% include "sidebar_" + SITE_NAME + ".html" %}
|
||||
{% include "sidebar_" ~ SITE_NAME ~ ".html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -42,13 +42,13 @@
|
|||
|
||||
{% elif '@' in request.path and u %}
|
||||
{% set author, a_author, published, url, title, image, section =
|
||||
'@'+u.username,
|
||||
'@'+u.username,
|
||||
'@'~u.username,
|
||||
'@'~u.username,
|
||||
u.created_date,
|
||||
u.url,
|
||||
u.username + "'s profile",
|
||||
u.username ~ "'s profile",
|
||||
u.banner_url,
|
||||
u.username + "'s profile" %}
|
||||
u.username ~ "'s profile" %}
|
||||
|
||||
{% set description %}
|
||||
{{u.coins}} coins - Joined {{u.created_date}} -
|
||||
|
@ -81,7 +81,7 @@
|
|||
|
||||
<meta property="og:title" content="{{title}}">
|
||||
<meta property="og:author" name="author" content="{{author | default(SITE_FULL, true)}}">
|
||||
<meta property="og:description" name="description" content="{{description | default(SITE_NAME + ' - ' + DESCRIPTION)}}">
|
||||
<meta property="og:description" name="description" content="{{description | default(SITE_NAME ~ ' - ' ~ DESCRIPTION)}}">
|
||||
|
||||
{% if not comment_info %}
|
||||
<meta property="og:image" content="{{image | default('site_preview.webp' | asset_siteimg)}}">
|
||||
|
@ -100,7 +100,7 @@
|
|||
|
||||
<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:description" content="{{description | default(SITE_NAME ~ ' - ' ~ DESCRIPTION)}}">
|
||||
<meta name="twitter:url" content="{{url}}">
|
||||
{% endmacro %}
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
|
||||
{%- macro live_banner() -%}
|
||||
{% set path = "files/assets/images/" ~ SITE_NAME %}
|
||||
{%- if not v and os_path.exists(path + "/cached.webp") -%}
|
||||
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
|
||||
{{ 'cached.webp' | asset_siteimg -}}
|
||||
{% elif os_path.exists(path + "/banners") -%}
|
||||
{% elif os_path.exists(path ~ "/banners") -%}
|
||||
{{ random_image("banners") -}}
|
||||
{% else -%}
|
||||
{{ 'banner.webp' | asset_siteimg -}}
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
{%- macro random_image(assetdir) -%}
|
||||
{% set path = "assets/images/" ~ SITE_NAME ~ "/" ~ assetdir -%}
|
||||
{{- "/" + path + "/" + listdir('files/' + path)|random() + '?v=45' }}
|
||||
{{- "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?v=45' }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{% macro post_meta(p) %}
|
||||
|
|
Loading…
Reference in New Issue