From 897113c9b6e44aa610da713c94a30967d333a02c Mon Sep 17 00:00:00 2001 From: Dan Macpherson Date: Thu, 7 Mar 2024 15:11:33 +1000 Subject: [PATCH] Hardening the method for getting pattern index files Add a check to determine if the page is branch. If it is, then it's an index page for a pattern and should be included. --- layouts/partials/patterns-browser.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/patterns-browser.html b/layouts/partials/patterns-browser.html index 7086203b3..f3e7e3c06 100644 --- a/layouts/partials/patterns-browser.html +++ b/layouts/partials/patterns-browser.html @@ -22,7 +22,8 @@

- {{ $patterns := where $.Pages "Section" "patterns"}} + {{ $patterns := where $.Pages "Type" "patterns"}} + {{ $patterns := where $patterns "BundleType" "branch"}}
{{- len $patterns -}} of {{ len $patterns }} patterns displayed