mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
Stripped tags from summary
This commit is contained in:
parent
07dd35177f
commit
af56ffb49c
@ -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>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user