diff options
author | Indrajith K L | 2022-11-23 23:47:31 +0530 |
---|---|---|
committer | Indrajith K L | 2022-11-23 23:47:31 +0530 |
commit | e52cb8f5462f2c341281aaec246022d58f42dae5 (patch) | |
tree | 79a0adc2f5249b5c0c1cbcc281fc7a0c76efc028 | |
parent | 186002c97f6eae656f6145961d3fc8fe460b7209 (diff) | |
download | indrajith-dev-e52cb8f5462f2c341281aaec246022d58f42dae5.tar.gz indrajith-dev-e52cb8f5462f2c341281aaec246022d58f42dae5.tar.bz2 indrajith-dev-e52cb8f5462f2c341281aaec246022d58f42dae5.zip |
Main Website Changes
* Layout Changes
-rw-r--r-- | src/index.njk | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/index.njk b/src/index.njk index ad74cd6..e5437e9 100644 --- a/src/index.njk +++ b/src/index.njk @@ -13,19 +13,18 @@ alternatetitle: "Hello Friend!! My name is Indrajith K L." </div> <div> - <h3>Recent Posts</h3> - <div> + <h4>Recent Posts</h4> + <ul> {% for post in collections.posts | reverse %} {% if (loop.index <= 4) %} - <div> - <p>{{post.data.title}}</p> - <div><a href="{{post.url}}">Read more</span></a></div> - </div> + <li> + <p>{{post.data.title}} <a href="{{post.url}}">Read more</span></a></p> + </li> {% endif %} {% else %} - <div> - <p>No Posts</p> - </div> + <li> + <p>No Posts</p> + </li> {% endfor %} - </div> + </ul> </div> |