diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-17 14:53:15 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-17 14:53:15 -0600 |
commit | 4a9b609bcc42c4bb04a1d7e46a2e4b66dc931df3 (patch) | |
tree | 22e3abf93367d97dd526a3b7091f88a584b25e6f /templates/index.html | |
parent | 569cddcf8a8861ba12a733febdc6591f77fb019d (diff) |
update template
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html index a651ea2..a83e6c3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,8 +6,9 @@ <main> {{ content}} +<h2>Recent Posts</h2> <ul> -{% for post in posts %} +{% for post in posts[:5] %} <li><a href="{{post.link}}">{{ post.title }}</a></li> <ul> <li>{{ post.description}}</li> @@ -20,5 +21,8 @@ {% endfor %} </ul> + +<b>For all posts go to <a href="/posts">Posts</a></b> + </main> -{% endblock %}
\ No newline at end of file +{% endblock %} |