xvc
parent
4c3ff3aadd
commit
b9ea8a882f
|
@ -436,7 +436,7 @@ class User(Base):
|
|||
@lazy
|
||||
def banner_url(self):
|
||||
if self.bannerurl: return self.bannerurl
|
||||
else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1011"
|
||||
else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1012"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<meta charset="utf-8">
|
||||
<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=1011">
|
||||
<meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012">
|
||||
|
||||
<link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1010">
|
||||
{% block title %}
|
||||
|
@ -47,7 +47,7 @@
|
|||
<meta property="og:type" content="article" >
|
||||
<meta property="og:title" content="{{SITE_NAME}}" >
|
||||
<meta property="og:site_name" content="{{request.host}}" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
|
||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
|
||||
<meta property="og:author" name="author" content="@{{SITE_FULL}}/" >
|
||||
|
@ -58,7 +58,7 @@
|
|||
<meta name="twitter:title" content="{{SITE_NAME}}" >
|
||||
<meta name="twitter:creator" content="@{{SITE_FULL}}/">
|
||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" >
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<meta property="og:type" content="article" >
|
||||
<meta property="og:title" content="{{SITE_NAME}}" >
|
||||
<meta property="og:site_name" content="{{request.host}}" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta property="og:url" content="{{request.host}}">
|
||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
|
||||
<meta property="og:author" name="author" content="@{{SITE_FULL}}/" >
|
||||
|
@ -29,7 +29,7 @@
|
|||
<meta name="twitter:title" content="{{SITE_NAME}}" >
|
||||
<meta name="twitter:creator" content="@{{SITE_FULL}}/">
|
||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta name="twitter:url" content="{{request.host}}" >
|
||||
|
||||
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<meta name="author" content="">
|
||||
<meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011">
|
||||
<meta name="thumbnail" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012">
|
||||
<link rel="icon" type="image/png" href="/static/assets/images/{{SITE_NAME}}/icon.webp?a=1010">
|
||||
|
||||
<meta property="og:type" content="article" >
|
||||
<meta property="og:title" content="{{SITE_NAME}}" >
|
||||
<meta property="og:site_name" content="{{request.host}}" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
|
||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
|
||||
<meta property="og:author" name="author" content="{{SITE_FULL}}/" >
|
||||
|
@ -29,7 +29,7 @@
|
|||
<meta name="twitter:title" content="{{SITE_NAME}}" >
|
||||
<meta name="twitter:creator" content="{{SITE_FULL}}/">
|
||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}" >
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<meta property="og:type" content="article" >
|
||||
<meta property="og:title" content="{{SITE_NAME}}" >
|
||||
<meta property="og:site_name" content="{{request.host}}" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta property="og:url" content="{{request.host}}">
|
||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
|
||||
<meta property="og:author" name="author" content="{{SITE_FULL}}/" >
|
||||
|
@ -25,7 +25,7 @@
|
|||
<meta name="twitter:title" content="{{SITE_NAME}}" >
|
||||
<meta name="twitter:creator" content="{{SITE_FULL}}/">
|
||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<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>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<meta property="og:type" content="article" >
|
||||
<meta property="og:title" content="{{SITE_NAME}}" >
|
||||
<meta property="og:site_name" content="{{request.host}}" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta property="og:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta property="og:url" content="{{request.host}}">
|
||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
|
||||
<meta property="og:author" name="author" content="{{SITE_FULL}}/" >
|
||||
|
@ -26,7 +26,7 @@
|
|||
<meta name="twitter:title" content="{{SITE_NAME}}" >
|
||||
<meta name="twitter:creator" content="{{SITE_FULL}}/">
|
||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1011" >
|
||||
<meta name="twitter:image" content="/static/assets/images/{{SITE_NAME}}/site_preview.webp?a=1012" >
|
||||
<meta name="twitter:url" content="{{request.host}}" >
|
||||
|
||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
<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: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=1011{% 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=1012{% endif %}" >
|
||||
{% if p.is_video %}
|
||||
<meta property="og:video" content="{{p.realurl(v)}}" >
|
||||
{% endif %}
|
||||
|
@ -233,7 +233,7 @@
|
|||
<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: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=1011{% 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=1012{% endif %}" >
|
||||
<meta name="twitter:url" content="{{p.permalink}}" >
|
||||
|
||||
{% else %}
|
||||
|
@ -246,7 +246,7 @@
|
|||
<meta property="og:description" name="description" content="{{p.plainbody(v)}}" >
|
||||
{% 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: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=1011{% 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=1012{% endif %}" >
|
||||
{% if p.url and p.is_video %}
|
||||
<meta property="og:video" content="{{p.realurl(v)}}" >
|
||||
{% endif %}
|
||||
|
@ -258,7 +258,7 @@
|
|||
<meta name="twitter:title" content="{{p.plaintitle(v)}} - {{SITE_NAME}}" >
|
||||
{% if p.author %}<meta name="twitter:creator" content="{{'@'+p.author_name}}">{% endif %}
|
||||
<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=1011{% 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=1012{% endif %}" >
|
||||
<meta name="twitter:url" content="{{p.permalink}}" >
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue