master
Aevann1 2022-02-06 00:31:11 +02:00
parent 30da17b076
commit fd7fce8ecb
7 changed files with 17 additions and 17 deletions

View File

@ -435,7 +435,7 @@ class User(Base):
@lazy @lazy
def banner_url(self): def banner_url(self):
if self.bannerurl: return self.bannerurl if self.bannerurl: return self.bannerurl
else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1009" else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1010"
@property @property
@lazy @lazy

View File

@ -38,7 +38,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009"> <meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010">
<link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1009"> <link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1009">
{% block title %} {% block title %}
@ -47,7 +47,7 @@
<meta property="og:type" content="article" > <meta property="og:type" content="article" >
<meta property="og:title" content="{{SITE_NAME}}" > <meta property="og:title" content="{{SITE_NAME}}" >
<meta property="og:site_name" content="{{request.host}}" > <meta property="og:site_name" content="{{request.host}}" >
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}"> <meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}"> <meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="@{{SITE_FULL}}/" > <meta property="og:author" name="author" content="@{{SITE_FULL}}/" >
@ -58,7 +58,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}" > <meta name="twitter:title" content="{{SITE_NAME}}" >
<meta name="twitter:creator" content="@{{SITE_FULL}}/"> <meta name="twitter:creator" content="@{{SITE_FULL}}/">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" > <meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" > <meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" >
{% endblock %} {% endblock %}

View File

@ -18,7 +18,7 @@
<meta property="og:type" content="article" > <meta property="og:type" content="article" >
<meta property="og:title" content="{{SITE_NAME}}" > <meta property="og:title" content="{{SITE_NAME}}" >
<meta property="og:site_name" content="{{request.host}}" > <meta property="og:site_name" content="{{request.host}}" >
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta property="og:url" content="{{request.host}}"> <meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}"> <meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="@{{SITE_FULL}}/" > <meta property="og:author" name="author" content="@{{SITE_FULL}}/" >
@ -29,7 +29,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}" > <meta name="twitter:title" content="{{SITE_NAME}}" >
<meta name="twitter:creator" content="@{{SITE_FULL}}/"> <meta name="twitter:creator" content="@{{SITE_FULL}}/">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" > <meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta name="twitter:url" content="{{request.host}}" > <meta name="twitter:url" content="{{request.host}}" >

View File

@ -12,13 +12,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content=""> <meta name="author" content="">
<meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009"> <meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010">
<link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1009"> <link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1009">
<meta property="og:type" content="article" > <meta property="og:type" content="article" >
<meta property="og:title" content="{{SITE_NAME}}" > <meta property="og:title" content="{{SITE_NAME}}" >
<meta property="og:site_name" content="{{request.host}}" > <meta property="og:site_name" content="{{request.host}}" >
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}"> <meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}"> <meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}/" > <meta property="og:author" name="author" content="{{SITE_FULL}}/" >
@ -29,7 +29,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}" > <meta name="twitter:title" content="{{SITE_NAME}}" >
<meta name="twitter:creator" content="{{SITE_FULL}}/"> <meta name="twitter:creator" content="{{SITE_FULL}}/">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" > <meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" > <meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" >

View File

@ -14,7 +14,7 @@
<meta property="og:type" content="article" > <meta property="og:type" content="article" >
<meta property="og:title" content="{{SITE_NAME}}" > <meta property="og:title" content="{{SITE_NAME}}" >
<meta property="og:site_name" content="{{request.host}}" > <meta property="og:site_name" content="{{request.host}}" >
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta property="og:url" content="{{request.host}}"> <meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}"> <meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}/" > <meta property="og:author" name="author" content="{{SITE_FULL}}/" >
@ -25,7 +25,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}" > <meta name="twitter:title" content="{{SITE_NAME}}" >
<meta name="twitter:creator" content="{{SITE_FULL}}/"> <meta name="twitter:creator" content="{{SITE_FULL}}/">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" > <meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta name="twitter:url" content="{{request.host}}" > <meta name="twitter:url" content="{{request.host}}" >
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title> <title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>

View File

@ -15,7 +15,7 @@
<meta property="og:type" content="article" > <meta property="og:type" content="article" >
<meta property="og:title" content="{{SITE_NAME}}" > <meta property="og:title" content="{{SITE_NAME}}" >
<meta property="og:site_name" content="{{request.host}}" > <meta property="og:site_name" content="{{request.host}}" >
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta property="og:url" content="{{request.host}}"> <meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}"> <meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}/" > <meta property="og:author" name="author" content="{{SITE_FULL}}/" >
@ -26,7 +26,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}" > <meta name="twitter:title" content="{{SITE_NAME}}" >
<meta name="twitter:creator" content="{{SITE_FULL}}/"> <meta name="twitter:creator" content="{{SITE_FULL}}/">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" > <meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009" > <meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010" >
<meta name="twitter:url" content="{{request.host}}" > <meta name="twitter:url" content="{{request.host}}" >
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title> <title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>

View File

@ -221,7 +221,7 @@
<meta property="og:description" name="description" content="{{comment_info.plainbody(v)}}" > <meta property="og:description" name="description" content="{{comment_info.plainbody(v)}}" >
<meta property="og:author" name="author" content="{{'@'+comment_info.author_name}}" > <meta property="og:author" name="author" content="{{'@'+comment_info.author_name}}" >
<meta property="og:title" content="{{'@'+comment_info.author_name}} comments on {{p.plaintitle(v)}} - {{SITE_NAME}}" > <meta property="og:title" content="{{'@'+comment_info.author_name}} comments on {{p.plaintitle(v)}} - {{SITE_NAME}}" >
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009{% endif %}" > <meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010{% endif %}" >
{% if p.is_video %} {% if p.is_video %}
<meta property="og:video" content="{{p.realurl(v)}}" > <meta property="og:video" content="{{p.realurl(v)}}" >
{% endif %} {% endif %}
@ -233,7 +233,7 @@
<meta name="twitter:title" content="{{'@'+comment_info.author_name}} comments on {{p.plaintitle(v)}} - {{SITE_NAME}}" > <meta name="twitter:title" content="{{'@'+comment_info.author_name}} comments on {{p.plaintitle(v)}} - {{SITE_NAME}}" >
<meta name="twitter:creator" content="{{'@'+comment_info.author_name}}"> <meta name="twitter:creator" content="{{'@'+comment_info.author_name}}">
<meta name="twitter:description" content="{{comment_info.plainbody(v)}}" > <meta name="twitter:description" content="{{comment_info.plainbody(v)}}" >
<meta name="twitter:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009{% endif %}" > <meta name="twitter:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010{% endif %}" >
<meta name="twitter:url" content="{{p.permalink}}" > <meta name="twitter:url" content="{{p.permalink}}" >
{% else %} {% else %}
@ -246,7 +246,7 @@
<meta property="og:description" name="description" content="{{p.plainbody(v)}}" > <meta property="og:description" name="description" content="{{p.plainbody(v)}}" >
{% if p.author %}<meta property="og:author" name="author" content="{{'@'+p.author_name}}" >{% endif %} {% if p.author %}<meta property="og:author" name="author" content="{{'@'+p.author_name}}" >{% endif %}
<meta property="og:title" content="{{p.plaintitle(v)}} - {{SITE_NAME}}" > <meta property="og:title" content="{{p.plaintitle(v)}} - {{SITE_NAME}}" >
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009{% endif %}" > <meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010{% endif %}" >
{% if p.url and p.is_video %} {% if p.url and p.is_video %}
<meta property="og:video" content="{{p.realurl(v)}}" > <meta property="og:video" content="{{p.realurl(v)}}" >
{% endif %} {% endif %}
@ -258,7 +258,7 @@
<meta name="twitter:title" content="{{p.plaintitle(v)}} - {{SITE_NAME}}" > <meta name="twitter:title" content="{{p.plaintitle(v)}} - {{SITE_NAME}}" >
{% if p.author %}<meta name="twitter:creator" content="{{'@'+p.author_name}}">{% endif %} {% if p.author %}<meta name="twitter:creator" content="{{'@'+p.author_name}}">{% endif %}
<meta name="twitter:description" content="{{p.plainbody(v)}}" > <meta name="twitter:description" content="{{p.plainbody(v)}}" >
<meta name="twitter:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb %}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1009{% endif %}" > <meta name="twitter:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb %}{{p.thumb_url}}{% else %}{{SITE_NAME}}/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1010{% endif %}" >
<meta name="twitter:url" content="{{p.permalink}}" > <meta name="twitter:url" content="{{p.permalink}}" >
{% endif %} {% endif %}