Skip to content

Commit

Permalink
perf: cache carousel partial
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 16, 2024
1 parent 5925210 commit 6c4a217
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 @@ -14,7 +14,7 @@
{{- $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) -}}
{{- partialCached "hb/modules/carousel/carousel" (dict "Pages" $featuredPages) $featuredPages -}}
</div>
{{- if $hasPinned }}
<div class="col-12 col-lg-6">
Expand Down

0 comments on commit 6c4a217

Please sign in to comment.