Fix: Nowe index has only 5 posts
parent
b91f2acde1
commit
ad30585169
2
TODO.md
2
TODO.md
|
@ -6,7 +6,7 @@
|
||||||
- [ ] Emphasize `<code>`
|
- [ ] Emphasize `<code>`
|
||||||
- [ ] Favicon
|
- [ ] Favicon
|
||||||
- [ ] og + twitter card
|
- [ ] og + twitter card
|
||||||
- [ ] Index, 5 posts + call2action
|
- [x] Index, 5 posts
|
||||||
- [ ] Change paginators (no vertical separator |)
|
- [ ] Change paginators (no vertical separator |)
|
||||||
- [ ] Archive + About: Change title
|
- [ ] Archive + About: Change title
|
||||||
- [ ] Fonts, use one font for the title and another one (more readable) for the post text
|
- [ ] Fonts, use one font for the title and another one (more readable) for the post text
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="posts-container">
|
<div class="posts-container">
|
||||||
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
|
{{ range first 5 (where .Site.RegularPages "Type" "posts") }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue