Skip to content

Commit 897113c

Browse files
committed
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.
1 parent 8a8a5f5 commit 897113c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/partials/patterns-browser.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ <h1 class="pf-c-title pf-m-4xl">
2222
</div>
2323
</div>
2424
<div class="pf-c-content" >
25-
{{ $patterns := where $.Pages "Section" "patterns"}}
25+
{{ $patterns := where $.Pages "Type" "patterns"}}
26+
{{ $patterns := where $patterns "BundleType" "branch"}}
2627
<div class="pf-l-stack pf-m-gutter">
2728
<div class="pf-l-stack__item pf-u-text-align-right pattern-count-style">
2829
<span id="pattern-count">{{- len $patterns -}}</span> of {{ len $patterns }} patterns displayed

0 commit comments

Comments
 (0)