From fc87fc3a29e8e515dff866159601a734e3ad4a2f Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 17 Jun 2021 12:07:15 +0530 Subject: [PATCH] Add option to show all pages in archive usage => In site config `Params.ShowAllPagesInArchive: true` --- layouts/_default/archives.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index f69b2727..bb85da38 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -10,6 +10,11 @@ {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + +{{- if .Site.Params.ShowAllPagesInArchive }} +{{- $pages = site.RegularPages }} +{{- end }} + {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}