Skip to content

Commit

Permalink
feat: add the meta.first_section page parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 16, 2024
1 parent bc81c24 commit 4e1d572
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/hb/modules/blog/post/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
{{- if and $readingTime (default true $pageMeta.reading_time) }}
{{ partialCached "hb/modules/blog/post/meta/reading-time" $page $page }}
{{- end }}
{{ partialCached "hb/modules/blog/post/meta/first-section" $page $page.FirstSection }}
{{- if default true $pageMeta.first_section }}
{{ partialCached "hb/modules/blog/post/meta/first-section" $page $page.FirstSection }}
{{- end }}
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-meta" "Page" .) }}
</div>
{{- end }}
Expand Down

0 comments on commit 4e1d572

Please sign in to comment.