From 460a5ad822248fce67892dba26a9bc0c08efbde0 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sat, 25 Jun 2022 10:44:35 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Expand=20search=20to=20include?= =?UTF-8?q?=20all=20page=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + layouts/_default/index.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d09dfaad..a1b05f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed +- Site search will now return results for all page types, including lists and taxonomies - Upgrade to Tailwind v3.1.4 ([#225](https://github.com/jpanther/congo/pull/225)) ### Fixed diff --git a/layouts/_default/index.json b/layouts/_default/index.json index b7bd589a..d431d3d7 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -1,5 +1,5 @@ {{- $index := slice -}} -{{- range .Site.RegularPages -}} +{{- range .Site.Pages -}} {{- $section := .Site.GetPage "section" .Section -}} {{- $index = $index | append (dict "date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))