mirror of
https://github.com/acaloiaro/hugo-htmx-go-template
synced 2026-07-21 18:29:14 +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 >}}
|
||||
<div
|
||||
hx-get="/content.html"
|
||||
hx-trigger="click" />
|
||||
hx-trigger="click"
|
||||
hx-target="#content_target"
|
||||
hx-swap="beforeend" />
|
||||
<button>Load content</button>
|
||||
<div id="content_target"></div>
|
||||
</div>
|
||||
{{< /htmx.inline >}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue