aboutsummaryrefslogtreecommitdiff
path: root/templates/blocks
diff options
context:
space:
mode:
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>