mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-30 03:53:17 -04:00
🐛 Recent articles should always display 5 links
This commit is contained in:
@@ -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))
|
||||
- Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366))
|
||||
- Link to last pagination page sometimes displays twice
|
||||
- Recent articles would sometimes display less than five articles
|
||||
|
||||
## [2.4.0] - 2022-11-10
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{ if .Site.Params.homepage.showRecent | default false }}
|
||||
<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" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user