Skip to content

Commit

Permalink
Hardening the method for getting pattern index files
Browse files Browse the repository at this point in the history
  • Loading branch information
danmacpherson committed Feb 29, 2024
1 parent 8a8a5f5 commit 8a72e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/patterns-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="pf-c-title pf-m-4xl">
</div>
</div>
<div class="pf-c-content" >
{{ $patterns := where $.Pages "Section" "patterns"}}
{{ $patterns := where $.Pages "Parent.Path" "/patterns"}}
<div class="pf-l-stack pf-m-gutter">
<div class="pf-l-stack__item pf-u-text-align-right pattern-count-style">
<span id="pattern-count">{{- len $patterns -}}</span> of {{ len $patterns }} patterns displayed
Expand Down

0 comments on commit 8a72e0f

Please sign in to comment.