forked from rDrama/rDrama
dfsfsd
parent
32819f7b38
commit
1aad110d5a
|
@ -80,7 +80,7 @@
|
||||||
<meta property="og:author" name="author" content="{{'@'+comment_info.author.username}}" />
|
<meta property="og:author" name="author" content="{{'@'+comment_info.author.username}}" />
|
||||||
<meta property="og:title" content="{{'@'+comment_info.author.username}} comments on {{p.title}} - {{'SITE_NAME' | app_config}}" />
|
<meta property="og:title" content="{{'@'+comment_info.author.username}} comments on {{p.title}} - {{'SITE_NAME' | app_config}}" />
|
||||||
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp{% endif %}" />
|
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp{% endif %}" />
|
||||||
{% if p.url.lower().endswith('.mp4') %}
|
{% if p.url and p.url.lower().endswith('.mp4') %}
|
||||||
<meta property="og:video" content="{{ p.realurl(v) }}" />
|
<meta property="og:video" content="{{ p.realurl(v) }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="og:url" content="{{comment_info.permalink | full_link}}" />
|
<meta property="og:url" content="{{comment_info.permalink | full_link}}" />
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<meta property="og:author" name="author" content="{{'@'+p.author.username}}" />
|
<meta property="og:author" name="author" content="{{'@'+p.author.username}}" />
|
||||||
<meta property="og:title" content="{{p.title}} - {{'SITE_NAME' | app_config}}" />
|
<meta property="og:title" content="{{p.title}} - {{'SITE_NAME' | app_config}}" />
|
||||||
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp{% endif %}" />
|
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp{% endif %}" />
|
||||||
{% if p.url.lower().endswith('.mp4') %}
|
{% if p.url and p.url.lower().endswith('.mp4') %}
|
||||||
<meta property="og:video" content="{{ p.realurl(v) }}" />
|
<meta property="og:video" content="{{ p.realurl(v) }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="og:url" content="{{p.permalink | full_link}}" />
|
<meta property="og:url" content="{{p.permalink | full_link}}" />
|
||||||
|
@ -316,7 +316,7 @@
|
||||||
<iframe loading="lazy" src="{{streamurl}}" width="100%" height="80" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>
|
<iframe loading="lazy" src="{{streamurl}}" width="100%" height="80" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
|
|
||||||
{% elif not p.embed_url and not p.is_image and not p.url.lower().endswith('.mp4') %}
|
{% elif not p.embed_url and not p.is_image and not (p.url and p.url.lower().endswith('.mp4')) %}
|
||||||
<a rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>
|
<a rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>
|
||||||
<div class="d-flex d-md-none justify-content-between align-items-center border rounded p-2{% if p.realbody(v) %} mb-3{% endif %}">
|
<div class="d-flex d-md-none justify-content-between align-items-center border rounded p-2{% if p.realbody(v) %} mb-3{% endif %}">
|
||||||
<span>{{p.domain|truncate(30, True)}}</span>
|
<span>{{p.domain|truncate(30, True)}}</span>
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
{% elif p.url.lower().endswith('.mp4') %}
|
{% elif p.url and p.url.lower().endswith('.mp4') %}
|
||||||
<div class="row no-gutters">
|
<div class="row no-gutters">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<video controls preload="metadata" style="max-width: 100%">
|
<video controls preload="metadata" style="max-width: 100%">
|
||||||
|
@ -521,7 +521,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not p.is_image and not p.url.lower().endswith('.mp4') %}
|
{% if not p.is_image and not (p.url and p.url.lower().endswith('.mp4')) %}
|
||||||
<div class="row no-gutters d-md-none">
|
<div class="row no-gutters d-md-none">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}"></a>
|
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}"></a>
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
<a href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{p.realurl(v)}}" onclick="expandDesktopImage('{{ p.realurl(v) }}')">
|
<a href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{p.realurl(v)}}" onclick="expandDesktopImage('{{ p.realurl(v) }}')">
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-img">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-img">
|
||||||
</a>
|
</a>
|
||||||
{% elif p.url.lower().endswith('.mp4') or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %}
|
{% elif (p.url and p.url.lower().endswith('.mp4')) or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %}
|
||||||
<a href="javascript:void(0)" onclick="document.getElementById('video-{{p.id}}').classList.toggle('d-none')">
|
<a href="javascript:void(0)" onclick="document.getElementById('video-{{p.id}}').classList.toggle('d-none')">
|
||||||
<img loading="lazy" src="{{p.thumb_url}}" class="post-img">
|
<img loading="lazy" src="{{p.thumb_url}}" class="post-img">
|
||||||
</a>
|
</a>
|
||||||
|
@ -443,7 +443,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.url.lower().endswith('.mp4') %}
|
{% if p.url and p.url.lower().endswith('.mp4') %}
|
||||||
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}d-none{% endif %} mt-4">
|
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}d-none{% endif %} mt-4">
|
||||||
<video controls preload="metadata" style="max-width: 100%">
|
<video controls preload="metadata" style="max-width: 100%">
|
||||||
<source src="{{p.realurl(v)}}" type="video/mp4">
|
<source src="{{p.realurl(v)}}" type="video/mp4">
|
||||||
|
|
Loading…
Reference in New Issue