aboutsummaryrefslogtreecommitdiff
path: root/templates/blocks
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-11-28 23:52:40 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-11-28 23:58:31 +0100
commitb2845952da634202be913fdf0e68e6cb55b67d80 (patch)
tree4815312c6bb33da58eab7fd87dbe07f1639bb686 /templates/blocks
downloadmoeka-b2845952da634202be913fdf0e68e6cb55b67d80.tar.gz
moeka-b2845952da634202be913fdf0e68e6cb55b67d80.tar.bz2
moeka-b2845952da634202be913fdf0e68e6cb55b67d80.zip
Initial commit
Diffstat (limited to 'templates/blocks')
-rw-r--r--templates/blocks/article-list.html34
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 &hellip;</a>
+ </article>
+ {% endfor %}
+</div>