Skip to content

Commit dc0d495

Browse files
Add generic hook system (#489)
1 parent 3ebaf63 commit dc0d495

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

layouts/_default/baseof.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@
9696
<link rel="stylesheet" href="{{ . | absURL }}">
9797
{{ end }}
9898
{{ end }}
99+
100+
{{ partial "hooks/head-end.html" }}
99101
</head>
100102

101103
<body class="bilberry-hugo-theme">
104+
{{ partial "hooks/body-start.html" }}
102105

103106
{{ partial "topnav.html" . }}
104107

@@ -128,6 +131,8 @@
128131
{{ if and (isset .Site.Params "algolia_search") (eq .Site.Params.algolia_search true) }}
129132
{{ partial "algolia-search.html" . }}
130133
{{ end }}
134+
135+
{{ partial "hooks/body-end.html" }}
131136
</body>
132137

133138
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--
2+
1. Copy this file into your site root's "layouts/partials/hooks" folder
3+
2. Add the necessary code to integrate with third-party services or to customize your site further
4+
-->
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--
2+
1. Copy this file into your site root's "layouts/partials/hooks" folder
3+
2. Add the necessary code to integrate with third-party services or to customize your site further
4+
-->
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--
2+
1. Copy this file into your site root's "layouts/partials/hooks" folder
3+
2. Add the necessary code to integrate with third-party services or to customize your site further
4+
-->

0 commit comments

Comments
 (0)