diff options
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 %} |