diff options
author | Indrajith K L | 2022-08-27 04:43:46 +0530 |
---|---|---|
committer | Indrajith K L | 2022-08-27 04:44:07 +0530 |
commit | 67dbc490de261318f1190d1e7e46dd9272f51ef6 (patch) | |
tree | ede2dfca42cb8a4b08824e40cfbb885f25bd236d /src/posts | |
download | indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.gz indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.bz2 indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.zip |
Initial Commit
* MVP
Diffstat (limited to 'src/posts')
-rw-r--r-- | src/posts/index.njk | 20 | ||||
-rw-r--r-- | src/posts/posts.json | 5 |
2 files changed, 25 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> + diff --git a/src/posts/posts.json b/src/posts/posts.json new file mode 100644 index 0000000..0cb18be --- /dev/null +++ b/src/posts/posts.json @@ -0,0 +1,5 @@ +{ + "layout": "posts", + "tags": "posts" + +}
\ No newline at end of file |