Fix: Nowe index has only 5 posts
parent
b91f2acde1
commit
ad30585169
2
TODO.md
2
TODO.md
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue