mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
Display only 75 words
This commit is contained in:
parent
ac2098f084
commit
1fbae852ba
@ -22,7 +22,7 @@
|
||||
<p class="uk-article-meta"><time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time> • <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>
|
||||
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</p>
|
||||
<p>{{ ' '.join(article.content.split(' ')[0:100])|striptags }}...</p>
|
||||
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
|
||||
<hr class="uk-article-divider">
|
||||
</article>
|
||||
|
Loading…
Reference in New Issue
Block a user