Consistent use of {{SITEURL}}
This commit is contained in:
parent
d78493f3d0
commit
12ac5ac1fb
@ -38,7 +38,7 @@
|
||||
<meta property="twitter:image" content="{{ SITEURL }}/{{ article.twitter_image }}">
|
||||
{% endif %}
|
||||
{% elif article.header_cover %}
|
||||
<meta name="twitter:image" content="{{ SITEURL }}{{ article.header_cover }}">
|
||||
<meta name="twitter:image" content="{{ SITEURL }}/{{ article.header_cover }}">
|
||||
{% elif HEADER_COVER %}
|
||||
<meta name="twitter:image" content="{{ SITEURL }}/{{ HEADER_COVER }}">
|
||||
{% else %}
|
||||
@ -78,7 +78,7 @@
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.og_image }}">
|
||||
{% endif %}
|
||||
{% elif article.header_cover %}
|
||||
<meta property="og:image" content="{{ SITEURL }}{{ article.header_cover }}">
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.header_cover }}">
|
||||
{% elif HEADER_COVER %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ HEADER_COVER }}">
|
||||
{% else %}
|
||||
|
@ -25,6 +25,27 @@
|
||||
</header>
|
||||
{% endblock header %}
|
||||
|
||||
{% block opengraph %}
|
||||
{{ super() }}
|
||||
{% if page.summary %}
|
||||
<meta property="og:description" content="{{ page.summary|striptags|truncate(140) }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.og_image %}
|
||||
{% if page.og_image|lower|truncate(4, True, '') == "http" %}
|
||||
<meta property="og:image" content="{{ page.og_image }}">
|
||||
{% else %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ page.og_image }}">
|
||||
{% endif %}
|
||||
{% elif page.header_cover %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ page.header_cover }}">
|
||||
{% elif HEADER_COVER %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ HEADER_COVER }}">
|
||||
{% else %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/post-bg.jpg">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article>
|
||||
{{ page.content }}
|
||||
|
Loading…
Reference in New Issue
Block a user