Fix: Nowe index has only 5 posts

feature/oscar-theme
Óscar M. Lage 2022-03-11 22:10:09 +01:00
parent b91f2acde1
commit ad30585169
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
- [ ] Emphasize `<code>`
- [ ] 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

View File

@ -96,11 +96,11 @@
</ul>
</div>
<div class="posts-container">
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
{{ .Render "summary" }}
{{ end }}
</div>
<div class="posts-container">
{{ range first 5 (where .Site.RegularPages "Type" "posts") }}
{{ .Render "summary" }}
{{ end }}
</div>
</main>