add htmx option
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
d6cd6d9175
commit
6d0deb4b29
@ -6,6 +6,9 @@
|
||||
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
||||
|
||||
<head>
|
||||
{{ if site.Params.htmx }}
|
||||
{{- partialCached "script-htmx.html" . -}}
|
||||
{{ endif }}
|
||||
{{- partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
@ -16,7 +19,12 @@
|
||||
{{- if eq site.Params.defaultTheme `dark` -}}
|
||||
{{- print " dark" }}
|
||||
{{- end -}}
|
||||
" id="top">
|
||||
" id="top"
|
||||
{{- if site.Params.htmx -}}
|
||||
hx-boost="true" hx-push-url="true"
|
||||
{{- endif -}}
|
||||
|
||||
>
|
||||
{{- partialCached "header.html" . .Page -}}
|
||||
<main class="main">
|
||||
{{- block "main" . }}{{ end }}
|
||||
|
1
layouts/partials/script-htmx.html
Normal file
1
layouts/partials/script-htmx.html
Normal file
@ -0,0 +1 @@
|
||||
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
Loading…
x
Reference in New Issue
Block a user