Skip to content

Commit 88670a2

Browse files
authored
feat: add the hb-docs-nav-afterbegin and hb-docs-nav-beforeend hooks (#748)
Please note that those two hooks will be cached by per first section regardless of hooks cache settings Closes #747
1 parent 017efae commit 88670a2

File tree

1 file changed

+2
-0
lines changed
  • layouts/partials/hb/modules/docs

1 file changed

+2
-0
lines changed

layouts/partials/hb/modules/docs/nav.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ <h5 class="offcanvas-title" id="hb-docs-nav-label">
1414
data-bs-target=".hb-docs-nav"></button>
1515
</div>
1616
<div class="offcanvas-body flex-column text-body-secondary">
17+
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-nav-afterbegin") }}
1718
<ul class="hb-docs-nav-links list-unstyled hb-module">
1819
{{ template "walk-docs-tree" (dict "Tree" $tree "Page" .) }}
1920
{{- with .FirstSection.Params.nav_menus }}
2021
{{- partial "hb/modules/docs/nav-menus" . -}}
2122
{{- end }}
2223
</ul>
24+
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-nav-beforeend") }}
2325
</div>
2426
</div>
2527

0 commit comments

Comments
 (0)