Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
8
templates/components/article_card.html
Normal file
8
templates/components/article_card.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% load core_tags %}
|
||||
<article>
|
||||
<a href="{{ article.url }}">{{ article.title }}</a>
|
||||
<p>{{ article.summary|truncatewords:20 }}</p>
|
||||
{% for tag in article.tags.all %}
|
||||
<span class="{{ tag|get_tag_css }}">{{ tag.name }}</span>
|
||||
{% endfor %}
|
||||
</article>
|
||||
Reference in New Issue
Block a user