mirror of https://github.com/jpanther/congo.git
🐛 Recent articles should always display 5 links
parent
7970511402
commit
eb573dc1b9
|
@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- List page doesn't render nested list pages ([#365](https://github.com/jpanther/congo/issues/365))
|
- List page doesn't render nested list pages ([#365](https://github.com/jpanther/congo/issues/365))
|
||||||
- Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366))
|
- Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366))
|
||||||
- Link to last pagination page sometimes displays twice
|
- Link to last pagination page sometimes displays twice
|
||||||
|
- Recent articles would sometimes display less than five articles
|
||||||
|
|
||||||
## [2.4.0] - 2022-11-10
|
## [2.4.0] - 2022-11-10
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ if .Site.Params.homepage.showRecent | default false }}
|
{{ if .Site.Params.homepage.showRecent | default false }}
|
||||||
<h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
|
<h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
|
||||||
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)).Pages }}
|
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5).Pages }}
|
||||||
{{ partial "article-link.html" . }}
|
{{ partial "article-link.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue