forked from rDrama/rDrama
im genuinely gonna kill some people, this is not a threat, this is a promise
parent
fc5d78a4a1
commit
6c6ea21fd8
|
@ -25,7 +25,7 @@
|
||||||
<script defer src="{{'js/core.js' | asset}}"></script>
|
<script defer src="{{'js/core.js' | asset}}"></script>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro page_meta (title=SITE_NAME) %}
|
{% macro page_meta(title=SITE_NAME) %}
|
||||||
|
|
||||||
{% if 'post/' in request.path and p %}
|
{% if 'post/' in request.path and p %}
|
||||||
{% set title = [p.plaintitle(v), ' - ', title] | join %}
|
{% set title = [p.plaintitle(v), ' - ', title] | join %}
|
||||||
|
@ -79,11 +79,6 @@
|
||||||
|
|
||||||
<title>{{title}}</title>
|
<title>{{title}}</title>
|
||||||
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
||||||
{{ meta_tags(title, author, description, image,
|
|
||||||
video, audio, a_author, published, modified, section, url) }}
|
|
||||||
{% endmacro %}
|
|
||||||
|
|
||||||
{% macro meta_tags(title, author, description, image, video, audio, a_author, published, modified, section, url ) %}
|
|
||||||
<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="{{'site_preview.webp' | asset_siteimg}}">
|
<meta name="thumbnail" content="{{'site_preview.webp' | asset_siteimg}}">
|
||||||
<meta name="description" content="{{DESCRIPTION}}">
|
<meta name="description" content="{{DESCRIPTION}}">
|
||||||
|
@ -95,9 +90,12 @@
|
||||||
<meta property="og:title" content="{{title}}">
|
<meta property="og:title" content="{{title}}">
|
||||||
<meta property="og:author" name="author" content="{{author | default(SITE_FULL, true)}}">
|
<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)}}">
|
<meta property="og:image" content="{{image | default('site_preview.webp' | asset_siteimg)}}">
|
||||||
<meta property="og:video" content="{{video}}">
|
<meta property="og:video" content="{{video}}">
|
||||||
<meta property="og:audio" content="{{audio}}">
|
<meta property="og:audio" content="{{audio}}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<meta property="og:article:author" content="{{a_author}}">
|
<meta property="og:article:author" content="{{a_author}}">
|
||||||
<meta property="og:article:published_time" content="{{published}}">
|
<meta property="og:article:published_time" content="{{published}}">
|
||||||
|
|
Loading…
Reference in New Issue