package templates import ( "fmt" ) templ DocsLayout(nav Navigation, doc Document, user User, currentPath string) { { doc.Title } - Bookhoard Documentation @Header(user, currentPath)
if len(doc.Breadcrumb) > 0 { }

{ doc.Title }

if len(doc.TOC) > 0 {
On this page for _, item := range doc.TOC { { item.Title } }
}
@UnsafeHTML(doc.Content).ToComponent()
} templ DocsLayoutWithExplorer(nav Navigation, doc Document, user User, explorer APIExplorerData, currentPath string) { { doc.Title } - Bookhoard Documentation @Header(user, currentPath)
if len(doc.Breadcrumb) > 0 { }

{ doc.Title }

if len(doc.TOC) > 0 {
On this page for _, item := range doc.TOC { { item.Title } }
}
@UnsafeHTML(doc.Content).ToComponent()
@APIExplorer(explorer)
}