basic setup for exploring HTMX for working with dynamic content
This commit is contained in:
parent
f68c30731b
commit
cad1c3e9b6
5 changed files with 92 additions and 1 deletions
|
@ -1,2 +1,2 @@
|
||||||
import 'htmx.org'
|
import 'htmx.org'
|
||||||
import 'htmx.org/ext/sse'
|
import 'htmx.org/dist/ext/sse'
|
||||||
|
|
4
layouts/shortcodes/hx/xplore.html
Normal file
4
layouts/shortcodes/hx/xplore.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<button hx-get="/docs/scopes/hx/app/demo"
|
||||||
|
hx-select="[itemprop=articleBody] p">
|
||||||
|
Hello World!
|
||||||
|
</button>
|
58
sites/hx/config.yaml
Normal file
58
sites/hx/config.yaml
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
baseurl: /docs/scopes/hx/
|
||||||
|
DefaultContentLanguage: en
|
||||||
|
title: cyberscopes example site
|
||||||
|
summary: explore htmx in a Hugo-generated site.
|
||||||
|
paginate: 6
|
||||||
|
theme:
|
||||||
|
- cyberscopes
|
||||||
|
- cybercards
|
||||||
|
themesDir: themes
|
||||||
|
pygmentsUseClasses: true
|
||||||
|
|
||||||
|
params:
|
||||||
|
|
||||||
|
homeSection: app
|
||||||
|
|
||||||
|
#defaultImage: 9609-motor2.jpg
|
||||||
|
logo: cc-logo.png
|
||||||
|
favicon: icon-star-bl.png
|
||||||
|
|
||||||
|
github: https://github.com/cyberconcepts
|
||||||
|
sourcehut: https://git.sr.ht/~cco
|
||||||
|
email: helmutm@cy55.de
|
||||||
|
|
||||||
|
copyright:
|
||||||
|
name: Helmut Merz
|
||||||
|
link: https://www.cyberconcepts.org
|
||||||
|
|
||||||
|
api:
|
||||||
|
module: main-htmx.ts
|
||||||
|
|
||||||
|
taxonomies:
|
||||||
|
domain: domains
|
||||||
|
topic: topics
|
||||||
|
|
||||||
|
frontmatter:
|
||||||
|
_merge: shallow
|
||||||
|
|
||||||
|
related:
|
||||||
|
_merge: shallow
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
- identifier: home
|
||||||
|
name: Home
|
||||||
|
title: Home
|
||||||
|
url: /
|
||||||
|
weight: 10
|
||||||
|
- identifier: topics
|
||||||
|
name: Topics
|
||||||
|
title: Topics
|
||||||
|
url: /topics/
|
||||||
|
weight: 20
|
||||||
|
- identifier: domains
|
||||||
|
name: Domains
|
||||||
|
title: Domains
|
||||||
|
url: /domains/
|
||||||
|
weight: 21
|
||||||
|
|
15
sites/hx/content/_index.md
Normal file
15
sites/hx/content/_index.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
title: "cyberscopes"
|
||||||
|
img:
|
||||||
|
pageid: index
|
||||||
|
domains: []
|
||||||
|
topics: []
|
||||||
|
date: 2023-11-16
|
||||||
|
author: helmutm
|
||||||
|
draft: false
|
||||||
|
weight: 110
|
||||||
|
---
|
||||||
|
|
||||||
|
cyberscopes example site - use HTMX in Hugo-generated sites.
|
||||||
|
|
||||||
|
{{< hx/xplore >}}
|
14
sites/hx/content/app/demo.md
Normal file
14
sites/hx/content/app/demo.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
title: Demo
|
||||||
|
summary: HTMX Demo
|
||||||
|
img:
|
||||||
|
pageid: demo
|
||||||
|
domains: []
|
||||||
|
topics: []
|
||||||
|
date: 2023-11-16
|
||||||
|
author: helmutm
|
||||||
|
draft: false
|
||||||
|
weight: 110
|
||||||
|
---
|
||||||
|
|
||||||
|
This ist HTMX.
|
Loading…
Add table
Reference in a new issue