Skip to content

Commit

Permalink
feat: add the hb-docs-nav-afterbegin and hb-docs-nav-beforeend hooks (#…
Browse files Browse the repository at this point in the history
…748)

Please note that those two hooks will be cached by per first section regardless of hooks cache settings

Closes #747
  • Loading branch information
razonyang authored Jul 14, 2024
1 parent 017efae commit 88670a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/hb/modules/docs/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ <h5 class="offcanvas-title" id="hb-docs-nav-label">
data-bs-target=".hb-docs-nav"></button>
</div>
<div class="offcanvas-body flex-column text-body-secondary">
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-nav-afterbegin") }}
<ul class="hb-docs-nav-links list-unstyled hb-module">
{{ template "walk-docs-tree" (dict "Tree" $tree "Page" .) }}
{{- with .FirstSection.Params.nav_menus }}
{{- partial "hb/modules/docs/nav-menus" . -}}
{{- end }}
</ul>
{{ partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-nav-beforeend") }}
</div>
</div>

Expand Down

0 comments on commit 88670a2

Please sign in to comment.