Stripped tags from summary

This commit is contained in:
Luca Chiricozzi 2014-12-30 21:42:05 +01:00
parent 07dd35177f
commit af56ffb49c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
<article class="uk-article">
<h1 class="uk-article-title">{{ article.title }}</h1>
<p class="uk-article-meta"> {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %}, <i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a>{% endif %}</p>
<p class="uk-article-lead">{{ article.summary }}</p>
<p class="uk-article-lead">{{ article.summary|striptags }}</p>
{% 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>

View File

@ -10,7 +10,7 @@
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted">{{ article.title }}</a>
<p class="uk-article-meta">{{ article.locale_date}} • <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %} • <i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a>{% endif %}</p>
</p>
<p class="uk-article-lead">{{ article.summary }}</p>
<p class="uk-article-lead">{{ article.summary|striptags }}</p>
<p>{{ ' '.join(article.content.split(' ')[0:100])|striptags }}...</p>
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
<hr class="uk-article-divider">