From ad30585169272621fb4f34a2a28654cc9ca3c38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Fri, 11 Mar 2022 22:10:09 +0100 Subject: [PATCH] Fix: Nowe index has only 5 posts --- TODO.md | 2 +- src/themes/oscar/layouts/index.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 }} +