Skip to content

Commit

Permalink
feat: add the hb-blog-post-meta hook (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 16, 2024
1 parent 2b9c27f commit bc81c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions layouts/partials/hb/modules/blog/post/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
{{ partialCached "hb/modules/blog/post/meta/reading-time" $page $page }}
{{- end }}
{{ partialCached "hb/modules/blog/post/meta/first-section" $page $page.FirstSection }}
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-meta" "Page" .) }}
</div>
{{- end }}
{{- if and $thumbnail (eq $thumbnailPos "top") }}
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/hb/modules/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h1 class="hb-blog-post-title text-break">{{ .Title }}</h1>
{{- if default true $meta.taxonomies }}
{{ partialCached "hb/modules/blog/post/meta/taxonomies" . . }}
{{- end }}
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-meta" "Page" .) }}
</div>
{{- end }}
{{- with .Description }}
Expand Down

0 comments on commit bc81c24

Please sign in to comment.