aboutsummaryrefslogtreecommitdiff
path: root/src/posts/index.njk
diff options
context:
space:
mode:
authorIndrajith K L2022-08-28 00:41:33 +0530
committerIndrajith K L2022-08-28 00:41:33 +0530
commit191fb0c0aa31a5142f81ea6f7fcf253b10f0297c (patch)
tree019ad6000e0be1e01779a962b42ce437e84aaed9 /src/posts/index.njk
parent7524f9aa94368d28250813a4e3bad965d178aa7c (diff)
downloadindrajith-dev-191fb0c0aa31a5142f81ea6f7fcf253b10f0297c.tar.gz
indrajith-dev-191fb0c0aa31a5142f81ea6f7fcf253b10f0297c.tar.bz2
indrajith-dev-191fb0c0aa31a5142f81ea6f7fcf253b10f0297c.zip
* Project Restructred
* Adds Tailwind * Completed Intro Page, About, Posts Listing * Changes build and development scripts
Diffstat (limited to 'src/posts/index.njk')
-rw-r--r--src/posts/index.njk17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/posts/index.njk b/src/posts/index.njk
index cfa29b3..7cd0afc 100644
--- a/src/posts/index.njk
+++ b/src/posts/index.njk
@@ -3,18 +3,23 @@ layout: base.njk
eleventyExcludeFromCollections: true
title: Posts
---
-<h2>Posts</h2>
-<div class="post-lists">
- {% for post in collections.posts %}
+<h2 class="text-2xl font-bold text-black p-2">Published Posts</h2>
+<div class="post-lists mt-2">
+ {% for post in collections.posts | reverse %}
<div class="post-data">
- <div class="post-date">
+ <div class="post-date p-2 bg-purple-700 text-white shadow-[5px_5px_0px_0px_rgba(0,0,0,255)]">
{{post.date | dateFilter}}
</div>
- <div class="post-title color-red">
+ <div class="post-title m-4 text-red-600 hover:text-black">
<a href="{{post.url}}"> {{post.data.title}}</a>
</div>
</div>
-
+ {% else %}
+ <div class="text-center flex justify-center text-red-600">
+ <span>No Posts </span>
+ <span class="pl-2">{% feather "frown" %}</span>
+ </div>
{% endfor %}
+
</div>