refactor(templates): consolidate header.js loading
- Move header.js script from individual templates to header.templ - Removes duplicate script tags from bookshelf, collections, progress, etc. - Fixes indentation in docs.templ
This commit is contained in:
@@ -13,10 +13,9 @@ templ DocsLayout(nav Navigation, doc Document, user User, currentPath string) {
|
||||
<title>{ doc.Title } - Bookhoard Documentation</title>
|
||||
<link href="/static/style.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/static/highlight-dark.min.css">
|
||||
<script src="/static/highlight.min.js"></script>
|
||||
<script src="/static/lunr.min.js"></script>
|
||||
<script src="/static/lunr-flex.min.js"></script>
|
||||
<script src="/static/header.js"></script>
|
||||
<script src="/static/highlight.min.js"></script>
|
||||
<script src="/static/lunr.min.js"></script>
|
||||
<script src="/static/lunr-flex.min.js"></script>
|
||||
</head>
|
||||
<body class={ "theme-" + user.Theme + " page-docs bg-background-primary text-text-primary font-sans antialiased" }>
|
||||
@Header(user, currentPath)
|
||||
|
||||
Reference in New Issue
Block a user