Add PageHeader.BodyAttrs/SidebarAttrs escape hatches

Needed by yakwui's Alpine.js-based collapsible sidebar (x-data on
<body>, :class binding on the sidebar <nav>) -- the shared markup has
no generic opinion about a consumer's own client-side framework state.
This commit is contained in:
terminar committed 2026-08-31 14:13:01 +02:00
1 parent 671d9bd92d
commit c99b000b1d
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -10,11 +10,11 @@
<script src="{{.BasePath}}/webui-static/bootstrap.bundle.min.js" defer></script>
{{.ExtraHeadHTML}}
</head>
<body>
<body{{.BodyAttrs}}>
{{template "navbar" .}}
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 col-lg-2 sidebar d-md-block">
<nav class="col-md-2 col-lg-2 sidebar d-md-block"{{.SidebarAttrs}}>
{{template "sidebar" .}}
</nav>
<main class="col-md-10 col-lg-10 ms-sm-auto px-md-4 py-3">