mirror of
https://github.com/acaloiaro/hugo-htmx-go-template
synced 2026-07-21 10:12:25 +00:00
Minor update to content load example
This commit is contained in:
parent
3d5da99a4d
commit
27c420310d
1 changed files with 4 additions and 1 deletions
|
|
@ -51,8 +51,11 @@ Here we are using a Hugo concept called an "inline shortcode". This allows us to
|
||||||
{{< htmx.inline >}}
|
{{< htmx.inline >}}
|
||||||
<div
|
<div
|
||||||
hx-get="/content.html"
|
hx-get="/content.html"
|
||||||
hx-trigger="click" />
|
hx-trigger="click"
|
||||||
|
hx-target="#content_target"
|
||||||
|
hx-swap="beforeend" />
|
||||||
<button>Load content</button>
|
<button>Load content</button>
|
||||||
|
<div id="content_target"></div>
|
||||||
</div>
|
</div>
|
||||||
{{< /htmx.inline >}}
|
{{< /htmx.inline >}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue