Only displaying article category if CATEGORY_SAVE_AS is set

This commit is contained in:
Lucas Cimon 2017-08-15 18:21:41 +02:00
parent 64980dc579
commit f8f4586a20
2 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,11 @@
<article class="uk-article"> <article class="uk-article">
<h1 class="uk-heading-large uk-article-title" itemprop="name">{{ article.title }}</h1> <h1 class="uk-heading-large uk-article-title" itemprop="name">{{ article.title }}</h1>
<p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time> in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %}, <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}</p> <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 %}
{% if DISQUS_SITENAME %}, <br class="uk-visible-small"><i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" itemprop="discussionUrl"></a>{% endif %}
</p>
{% if SHARE %} {% if SHARE %}
<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;" taget="_blank" class="uk-button uk-visible-small"><i class="uk-icon-facebook-square"></i> Share</a> <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;" taget="_blank" class="uk-button uk-visible-small"><i class="uk-icon-facebook-square"></i> Share</a>

View File

@ -142,12 +142,10 @@
</div> </div>
{% endif %} {% endif %}
{% if FEED_ALL_ATOM %}
<div class="uk-panel uk-panel-box"> <div class="uk-panel uk-panel-box">
<h3 class="uk-panel-title">Receive Updates</h3> <h3 class="uk-panel-title">Receive Updates</h3>
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> ATOM</a> <a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> ATOM</a>
</div> </div>
{% endif %}
{% if LINKS %} {% if LINKS %}
<div class="uk-panel uk-panel-box"> <div class="uk-panel uk-panel-box">