Display only 75 words

This commit is contained in:
Luca Chiricozzi 2015-01-09 20:26:48 +01:00
parent ac2098f084
commit 1fbae852ba

View File

@ -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 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>
<p class="uk-article-lead" itemprop="description">{{ article.summary|striptags }}</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> <a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
<hr class="uk-article-divider"> <hr class="uk-article-divider">
</article> </article>