- {{ else }}
-
-
- {{ end }}
- {{ end }}
+ {{ else }}
- {{ range .Pages }}
+
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+ {{ range .Pages }}
+ {{ partial "article-link-card.html" . }}
+ {{ end }}
+ {{ end }}
+
- {{ if $cardViewScreenWidth }}
-
- {{ else }}
-
- {{ end }}
+ {{ end }}
- {{ partial "article-link-card.html" . }}
-
- {{ end }}
- {{ if $.Params.groupByYear | default ($.Site.Params.term.groupByYear | default true) }}
-
-
- {{ end }}
+ {{ else if and $cardView $cardViewScreenWidth }}
+ {{ if $groupByYear }}
- {{ end }}
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+
+
+ {{ .Key }}
+
+
+ {{ range .Pages }}
+ {{ partial "article-link-card.html" . }}
+ {{ end }}
+
+
+ {{ end }}
- {{ if not $.Params.groupByYear | default ($.Site.Params.term.groupByYear | default true) }}
-
-
- {{ end }}
+ {{ else }}
- {{ else }}
-
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
- {{ if $.Params.groupByYear | default ($.Site.Params.term.groupByYear | default true) }}
-
- {{ .Key }}
-
- {{ end }}
- {{ range .Pages }}
- {{ partial "article-link.html" . }}
- {{ end }}
- {{ end }}
-
- {{ end }}
+
+
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+ {{ range .Pages }}
+ {{ partial "article-link-card.html" . }}
+ {{ end }}
+ {{ end }}
+
+
- {{ else }}
-
-
- {{ i18n "list.no_articles" | emojify }}
-
-
- {{ end }}
+ {{ end }}
- {{ partial "pagination.html" . }}
+ {{end}}
- {{ end }}
+ {{ else }}
+
+
+ {{ i18n "list.no_articles" | emojify }}
+
+
+ {{ end }}
+
+ {{ partial "pagination.html" . }}
+
+ {{ end }}
\ No newline at end of file
diff --git a/layouts/partials/recent-articles-cardview-fullwidth.html b/layouts/partials/recent-articles-cardview-fullwidth.html
index 9542df83..90d965c8 100644
--- a/layouts/partials/recent-articles-cardview-fullwidth.html
+++ b/layouts/partials/recent-articles-cardview-fullwidth.html
@@ -1,11 +1,12 @@
{{ $recentArticles := 5 }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
-
- {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
- .Site.Params.mainSections)).Pages }}
- {{ partial "article-link-card.html" . }}
- {{ end }}
-
\ No newline at end of file
+
+
+ {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
+ .Site.Params.mainSections)).Pages }}
+ {{ partial "article-link-card.html" . }}
+ {{ end }}
+
+
\ No newline at end of file