From 2cbd791c7a90b1e88718c4caab155c1ffe29619d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 5 Nov 2026 10:09:22 +0100 Subject: feat: add layouts for the HardenedPass docs section Sidebar with the page tree and table of contents, collapsing into native details elements on mobile, and prev/next links that follow one reading order across subsections. The section joins the search index. Co-Authored-By: Claude Opus 5.5 --- layouts/partials/docs-pager.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 layouts/partials/docs-pager.html (limited to 'layouts/partials/docs-pager.html') diff --git a/layouts/partials/docs-pager.html b/layouts/partials/docs-pager.html new file mode 100644 index 0000000..e44b570 --- /dev/null +++ b/layouts/partials/docs-pager.html @@ -0,0 +1,10 @@ +{{/* Pages.Next steps toward index 0, so reversing makes "next" the following page. */}} +{{ $pages := (site.GetPage "/hardenedpass").RegularPagesRecursive.ByWeight.Reverse }} +{{ $prev := $pages.Prev . }} +{{ $next := $pages.Next . }} +{{ if or $prev $next }} + +{{ end }} -- cgit v1.2.3