Fix error pages
This commit is contained in:
parent
8aa72dbfa0
commit
6a3a384012
|
@ -13,6 +13,16 @@ templ Head() {
|
|||
<link rel="stylesheet" href="/css/tailwind.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="theme-color" content="#091833"/>
|
||||
<meta
|
||||
name="htmx-config"
|
||||
content='{
|
||||
"responseHandling": [
|
||||
{ "code": "204", "swap": false },
|
||||
{ "code": "[23]..", "swap": true },
|
||||
{ "code": "[45]..", "swap": true, "error": true }
|
||||
]
|
||||
}'
|
||||
/>
|
||||
<script src="/js/htmx.js" integrity="sha384-Xh+GLLi0SMFPwtHQjT72aPG19QvKB8grnyRbYBNIdHWc2NkCrz65jlU7YrzO6qRp" crossorigin="anonymous"></script>
|
||||
if ctx.Value(c.EnvContextKey) == "development" {
|
||||
<script defer src="/js/hotreload.js"></script>
|
||||
|
|
Loading…
Reference in New Issue