diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-11-28 23:52:40 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-11-28 23:58:31 +0100 |
commit | b2845952da634202be913fdf0e68e6cb55b67d80 (patch) | |
tree | 4815312c6bb33da58eab7fd87dbe07f1639bb686 /templates/blocks/article-list.html | |
download | moeka-b2845952da634202be913fdf0e68e6cb55b67d80.tar.gz moeka-b2845952da634202be913fdf0e68e6cb55b67d80.tar.bz2 moeka-b2845952da634202be913fdf0e68e6cb55b67d80.zip |
Initial commit
Diffstat (limited to 'templates/blocks/article-list.html')
-rw-r--r-- | templates/blocks/article-list.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/blocks/article-list.html b/templates/blocks/article-list.html new file mode 100644 index 0000000..a31836f --- /dev/null +++ b/templates/blocks/article-list.html @@ -0,0 +1,34 @@ +<div class="article-list"> + {% for article in articles_page.object_list %} + <article> + {# Article meta information #} + <p class="article-meta"> + <time datetime="{{ article.date }}"> + {{ article.date | strftime("%B %d, %Y") }} + </time> + in + <a href="{{ SITEURL }}/{{ article.category.url }}"> + {{ article.category.name }} + </a> + </p> + + <h1> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + </h1> + + <div class="tags"> + <ul class="tags"> + {% for tag in article.tags %} + <li> + <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag.name }}</a> + </li> + {% endfor %} + </ul> + </div> + + <p>{{ article.description }}</p> + + <a class="read-more-link" href="{{ SITEURL }}/{{ article.url }}">Read more …</a> + </article> + {% endfor %} +</div> |