feat: add head-support htmx extension

This commit is contained in:
Guz
2025-04-05 12:09:48 -03:00
parent 86296aa1e8
commit 1ccc480625
2 changed files with 4 additions and 1 deletions

View File

@@ -10,6 +10,9 @@
<script src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.js"
integrity="sha384-oeUn82QNXPuVkGCkcrInrS1twIxKhkZiFfr2TdiuObZ3n3yIeMiqcRzkIcguaof1"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/htmx-ext-head-support@2.0.2"
integrity="sha384-cvMqHzjCJsOHgGuyB3sWXaUSv/Krm0BdzjuI1rtkjCbL1l1oHJx+cHyVRJhyuEz0"
crossorigin="anonymous"></script>
</head>
{{end}}
{{define "layout-base-end"}}

View File

@@ -1,7 +1,7 @@
{{define "layout-page-start"}}
{{template "layout-base-start" (args "Title" .Title)}}
<body class="min-w-screen relative min-h-screen bg-black text-white" hx-boost="true">
<body class="min-w-screen relative min-h-screen bg-black text-white" hx-boost="true" hx-ext="head-support">
{{end}}
{{define "layout-page-end"}}
</body>