2014-12-10 17:17:48 +00:00
|
|
|
{% extends "index.html" %}
|
|
|
|
|
2019-04-25 15:16:32 +00:00
|
|
|
{% block title %}{{ page.pagetitle }}{% endblock title %}
|
2014-12-10 17:17:48 +00:00
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<!-- Page Header -->
|
2014-12-10 17:53:48 +00:00
|
|
|
{% if page.header_cover %}
|
2017-10-25 12:06:10 +00:00
|
|
|
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ page.header_cover }}')">
|
2015-11-25 15:07:56 +00:00
|
|
|
{% elif HEADER_COVER %}
|
2017-10-25 12:06:10 +00:00
|
|
|
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ HEADER_COVER }}')">
|
2016-02-14 23:45:19 +00:00
|
|
|
{% elif HEADER_COLOR %}
|
|
|
|
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
|
2014-12-10 17:53:48 +00:00
|
|
|
{% else %}
|
|
|
|
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')">
|
|
|
|
{% endif %}
|
2014-12-10 17:17:48 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
<div class="post-heading">
|
|
|
|
<h1>{{ page.title }}</h1>
|
2019-04-23 17:38:31 +00:00
|
|
|
{% import 'translations.html' as translations with context %}
|
|
|
|
{{ translations.translations_for(page) }}
|
2014-12-10 17:17:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
{% endblock header %}
|
|
|
|
|
2019-04-23 08:46:20 +00:00
|
|
|
{% 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 %}
|
|
|
|
|
2014-12-10 17:17:48 +00:00
|
|
|
{% block content %}
|
|
|
|
<article>
|
|
|
|
{{ page.content }}
|
2019-04-23 08:45:24 +00:00
|
|
|
{% if page.article_list and PAGE_PAGINATION > 0 %}
|
2019-04-23 08:44:50 +00:00
|
|
|
<hr />
|
|
|
|
{% include "last_articles.html" %}
|
|
|
|
{% endif %}
|
2014-12-10 17:17:48 +00:00
|
|
|
</article>
|
|
|
|
{% endblock content %}
|