Skip to content

Commit

Permalink
fix: build of home layout
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Oct 19, 2023
1 parent 0f0045a commit 42ca3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/hb/modules/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{- if $featuredPages }}
<div class="row">
{{- $pinnedPages := first 1 (where $pages ".Params.pinned" true) }}
{{- $hasPinned := and (ne $pinnedPos "list") $pinnedPages }}
{{- $hasPinned := and (ne $pinnedPos "list") (gt (len $pinnedPages) 0) }}
<div class="col-12{{ cond $hasPinned ` col-lg-6` `` }} hb-blog-home-carousel">
{{- partial "hb/modules/carousel/carousel" (dict "Pages" $featuredPages) -}}
</div>
Expand Down

0 comments on commit 42ca3ce

Please sign in to comment.