Skip to content

Commit

Permalink
feat: add the hb-blog-post-content-afterbegin and hb-blog-post-conten…
Browse files Browse the repository at this point in the history
…t-beforeend hooks (#565)
  • Loading branch information
razonyang committed Dec 19, 2023
1 parent fd594b1 commit 2413243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/hb/modules/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ <h1 class="hb-blog-post-title">{{ .Title }}</h1>
<div
class="hb-blog-post-content hb-module"
{{ with $attributes }}{{ . | safeHTMLAttr }}{{ end }}>
{{- partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-afterbegin" "Page" .) }}
{{ .Content }}
{{- partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-beforeend" "Page" .) }}
</div>
{{- partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-end" "Page" .) }}
{{- partial "hb/modules/blog/post/comments" . }}
Expand Down

0 comments on commit 2413243

Please sign in to comment.