Skip to content

Commit

Permalink
fix: safe check if the meta parameter is boolean (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Apr 15, 2024
1 parent 8c417a4 commit 4472db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/hb/modules/blog/post/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{- $modularize := default true .Modularize }}
<div
class="hb-blog-post-card card border-0 overflow-hidden h-100{{ cond $modularize ` hb-module` ` bg-transparent` }} mb-0">
{{- if $meta }}
{{- if and $meta (ne $pageMeta false) }}
<div class="hb-blog-post-meta d-flex align-items-center">
{{- if default true $pageMeta.authors }}
{{ partialCached "hb/modules/blog/post/meta/authors" $page $page }}
Expand Down Expand Up @@ -46,7 +46,7 @@
{{- end }}
</a>
</div>
{{- if and $meta (default true $pageMeta.taxonomies) }}
{{- if and $meta (ne $pageMeta false) (default true $pageMeta.taxonomies) }}
<div class="hb-blog-post-meta d-block text-nowrap text-truncate mb-2">
{{ partialCached "hb/modules/blog/post/meta/taxonomies" $page $page }}
</div>
Expand Down

0 comments on commit 4472db8

Please sign in to comment.