Skip to content

Commit 8a72e0f

Browse files
committed
Hardening the method for getting pattern index files
1 parent 8a8a5f5 commit 8a72e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/patterns-browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <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 "Parent.Path" "/patterns"}}
2626
<div class="pf-l-stack pf-m-gutter">
2727
<div class="pf-l-stack__item pf-u-text-align-right pattern-count-style">
2828
<span id="pattern-count">{{- len $patterns -}}</span> of {{ len $patterns }} patterns displayed

0 commit comments

Comments
 (0)