aboutsummaryrefslogtreecommitdiff
path: root/src/posts/index.njk
diff options
context:
space:
mode:
authorIndrajith K L2022-08-27 04:43:46 +0530
committerIndrajith K L2022-08-27 04:44:07 +0530
commit67dbc490de261318f1190d1e7e46dd9272f51ef6 (patch)
treeede2dfca42cb8a4b08824e40cfbb885f25bd236d /src/posts/index.njk
downloadindrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.gz
indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.bz2
indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.zip
Initial Commit
* MVP
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>
+