From bc81c242ce7f84c4286ef75b053e9896beee3099 Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Mon, 17 Jun 2024 00:36:37 +0800 Subject: [PATCH] feat: add the hb-blog-post-meta hook (#906) --- layouts/partials/hb/modules/blog/post/card.html | 1 + layouts/partials/hb/modules/blog/single.html | 1 + 2 files changed, 2 insertions(+) diff --git a/layouts/partials/hb/modules/blog/post/card.html b/layouts/partials/hb/modules/blog/post/card.html index 84a2d4f8..98ee032d 100644 --- a/layouts/partials/hb/modules/blog/post/card.html +++ b/layouts/partials/hb/modules/blog/post/card.html @@ -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" .) }} {{- end }} {{- if and $thumbnail (eq $thumbnailPos "top") }} diff --git a/layouts/partials/hb/modules/blog/single.html b/layouts/partials/hb/modules/blog/single.html index 0b445d0e..25bd90a9 100644 --- a/layouts/partials/hb/modules/blog/single.html +++ b/layouts/partials/hb/modules/blog/single.html @@ -20,6 +20,7 @@

{{ .Title }}

{{- 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" .) }} {{- end }} {{- with .Description }}