aboutsummaryrefslogtreecommitdiff
path: root/src/posts/index.njk
diff options
context:
space:
mode:
Diffstat (limited to 'src/posts/index.njk')
-rw-r--r--src/posts/index.njk20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/posts/index.njk b/src/posts/index.njk
new file mode 100644
index 0000000..cfa29b3
--- /dev/null
+++ b/src/posts/index.njk
@@ -0,0 +1,20 @@
+---
+layout: base.njk
+eleventyExcludeFromCollections: true
+title: Posts
+---
+<h2>Posts</h2>
+<div class="post-lists">
+ {% for post in collections.posts %}
+ <div class="post-data">
+ <div class="post-date">
+ {{post.date | dateFilter}}
+ </div>
+ <div class="post-title color-red">
+ <a href="{{post.url}}"> {{post.data.title}}</a>
+ </div>
+ </div>
+
+ {% endfor %}
+</div>
+