2014-12-29 22:08:56 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ article.title|striptags }}{% endblock %}
|
2017-08-15 17:16:00 +00:00
|
|
|
{% block description %}{{ article.summary|striptags|e }}{% endblock %}
|
2015-01-01 20:06:34 +00:00
|
|
|
{% block seo %}
|
|
|
|
|
2017-08-15 22:16:19 +00:00
|
|
|
<meta property="og:title" content="{{ article.title|capitalize }}" >
|
|
|
|
<meta property="og:type" content="article" >
|
|
|
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" >
|
|
|
|
<meta name="twitter:title" content="{{ article.title|capitalize }}" >
|
|
|
|
<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}" >
|
|
|
|
<meta itemprop="url" content="{{ SITEURL }}/{{ article.url }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% if article.summary %}
|
2019-02-13 20:50:27 +00:00
|
|
|
<meta property="og:description" content="{{ article.summary|striptags|escape }}" >
|
|
|
|
<meta name="twitter:description" content="{{ article.summary|striptags|escape }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if article.date %}
|
2017-08-15 22:16:19 +00:00
|
|
|
<meta property="og:article:published_time" content="{{ article.date.strftime('%Y-%m-%d') }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if article.modified %}
|
2015-01-09 18:56:22 +00:00
|
|
|
<meta property="og:article:modified_time" content="{{ article.modified.strftime('%Y-%m-%d') }}">
|
2017-08-15 22:16:19 +00:00
|
|
|
<meta itemprop="dateModified" content="{{ article.date.strftime('%Y-%m-%d') }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if article.author %}
|
2015-01-09 18:56:22 +00:00
|
|
|
<meta property="og:article:author" content="{{ article.author }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
|
|
|
{% for tag in article.tags %}
|
|
|
|
<meta property="og:article:tag" content="{{ tag }}">
|
|
|
|
{% endfor %}
|
|
|
|
{% if article.image %}
|
2017-08-15 22:16:19 +00:00
|
|
|
<meta property="og:image" content="{{ article.image }}" >
|
|
|
|
<meta name="twitter:image" content="{{ article.image }}" >
|
|
|
|
<meta itemprop="image" content="{{ article.image }}">
|
2015-01-01 23:56:46 +00:00
|
|
|
{% elif META_IMAGE %}
|
2017-08-15 22:16:19 +00:00
|
|
|
<meta property="og:image" content="{{ META_IMAGE }}" >
|
|
|
|
<meta property="og:image:type" content="{{ META_IMAGE_TYPE }}" >
|
|
|
|
<meta name="twitter:image" content="{{ META_IMAGE }}" >
|
|
|
|
<meta itemprop="image" content="{{ META_IMAGE }}" >
|
2015-01-01 20:06:34 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% block content %}
|
2019-05-29 00:22:01 +00:00
|
|
|
<div class="uk-width-3-4@m">
|
2014-12-29 22:08:56 +00:00
|
|
|
|
2015-01-09 18:56:22 +00:00
|
|
|
<article class="uk-article">
|
2019-05-28 23:46:21 +00:00
|
|
|
<h1 class="uk-heading-primary uk-article-title" itemprop="name">{{ article.title }}</h1>
|
2017-08-15 16:21:41 +00:00
|
|
|
<p class="uk-article-meta">
|
|
|
|
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time>
|
|
|
|
{% if CATEGORY_SAVE_AS %}<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %}
|
2019-05-28 23:46:21 +00:00
|
|
|
{% if DISQUS_SITENAME %}, <br class="uk-visible@s"><i class="fas fa-comments"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}
|
2017-08-15 16:21:41 +00:00
|
|
|
</p>
|
2014-12-29 22:08:56 +00:00
|
|
|
|
|
|
|
{% if SHARE %}
|
2019-05-28 23:46:21 +00:00
|
|
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{ SITEURL }}/{{ article.url }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank" class="uk-button uk-button-default uk-visible@s"><i class="fab fa-facebook-square"></i> Share</a>
|
|
|
|
<a href="https://twitter.com/intent/tweet?text={{ article.title|striptags|urlencode }}&url={{ SITEURL }}/{{ article.url }}&via={{ TWITTER_USERNAME }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" class="uk-button uk-button-default uk-visible@s" target="_blank"><i class="fab fa-twitter-square"></i> Tweet</a>
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2019-05-28 05:28:30 +00:00
|
|
|
{% if not MG_DISABLE_SUMMARY %}<p class="uk-text-lead" itemprop="description">{{ article.summary|striptags }}</p>{% endif %}
|
2017-08-07 00:32:45 +00:00
|
|
|
<section class="uk-article-content" itemprop="articleBody">{{ article.content }}</section>
|
2017-08-09 00:52:31 +00:00
|
|
|
{% include "partials/inline-tags.html" %}
|
2019-05-28 05:28:30 +00:00
|
|
|
<hr class="uk-divider-icon">
|
2014-12-29 22:08:56 +00:00
|
|
|
</article>
|
|
|
|
|
|
|
|
{% if DISQUS_SITENAME %}
|
|
|
|
<div id="disqus_thread"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
|
|
|
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
|
|
|
|
|
|
|
/* * * DON'T EDIT BELOW THIS LINE * * */
|
|
|
|
(function() {
|
|
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
|
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
2017-02-01 03:32:39 +00:00
|
|
|
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|