Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if article.content| striptags | length > 450 %}
- <h2><a href="/article/{{ article.seo_url }}">{{ article.title }}</a></h2>
- <p align="justify">{{ article.content|raw | striptags [:300] }}...</p><hr />
- <a href="/article/{{ article.seo_url }}" class="text-center">Czytaj cały artykuł</a>
- {% else %}
- <h2><a href="#">{{ article.title }}</a></h2>
- <p align="justify">{{ article.content|raw }}</p>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement