diff --git a/TODO.md b/TODO.md index 10e6278..f263cfb 100644 --- a/TODO.md +++ b/TODO.md @@ -6,7 +6,7 @@ - [ ] Emphasize `` - [ ] Favicon - [ ] og + twitter card -- [ ] Index, 5 posts + call2action +- [x] Index, 5 posts - [ ] Change paginators (no vertical separator |) - [ ] Archive + About: Change title - [ ] Fonts, use one font for the title and another one (more readable) for the post text diff --git a/src/themes/oscar/layouts/index.html b/src/themes/oscar/layouts/index.html index deb2b58..60ad75a 100644 --- a/src/themes/oscar/layouts/index.html +++ b/src/themes/oscar/layouts/index.html @@ -96,11 +96,11 @@ -
- {{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }} - {{ .Render "summary" }} - {{ end }} -
+
+ {{ range first 5 (where .Site.RegularPages "Type" "posts") }} + {{ .Render "summary" }} + {{ end }} +