Skip to content

Commit

Permalink
Add the head-end and body-end hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Apr 3, 2023
1 parent 6b997fd commit 01b45fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ pwa:
background_color: '#712cf9'
theme_color: '#712cf9'
short_name: 'HB Theme'

hugopress:
modules:
hb-custom:
hooks:
# see layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html.
head-end:
cacheable: true
# see layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html.
body-end:
cacheable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{/* Put custom HTML markup before the end of <body>. */}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{/* Put custom HTML markup before the end of <head>. */}}

0 comments on commit 01b45fe

Please sign in to comment.