Skip to content

Commit

Permalink
fix(img-grid): make sure using the proper .Page (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
pleasantone authored Feb 20, 2024
1 parent 5e3ad5b commit a71cdd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/bootstrap/img-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
{{- else }}
{{- $key = .Get 0 }}
{{- end }}
{{- $page := .Page }}
{{- $data := partialCached "bootstrap/functions/data" (dict "key" $key "page" .Page) .Page $key }}
{{- with $data }}
<div class="d-flex bs-img-grid flex-wrap gap-1 justify-content-center">
{{- range . }}
{{- $img := partial "images/image" (dict
"Page" $page
"Filename" .src
"ClassName" "bs-img-grid-item-img"
"Alt" .title
Expand Down

0 comments on commit a71cdd3

Please sign in to comment.