work in progess: embed login form rendered on server
This commit is contained in:
parent
add89bcf2a
commit
94ad5dd0ae
3 changed files with 13 additions and 4 deletions
7
layouts/shortcodes/hx/load.html
Normal file
7
layouts/shortcodes/hx/load.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{{- $root := .Site.Params.Api.Root -}}
|
||||||
|
{{- $action := .Get "action" | default "data" -}}
|
||||||
|
{{- $domain := .Get "domain" | default $.Page.Params.api.domain -}}
|
||||||
|
{{- $target := .Get "target" | default "#cs-debug" -}}
|
||||||
|
<div hx-get="{{ $root }}/{{ $domain }}/{{ $action }}"
|
||||||
|
hx-trigger="load">
|
||||||
|
</div>
|
|
@ -2,12 +2,13 @@ baseurl: /docs/scopes/hx/
|
||||||
DefaultContentLanguage: en
|
DefaultContentLanguage: en
|
||||||
title: cyberscopes example site
|
title: cyberscopes example site
|
||||||
summary: explore htmx in a Hugo-generated site.
|
summary: explore htmx in a Hugo-generated site.
|
||||||
paginate: 6
|
|
||||||
theme:
|
theme:
|
||||||
- cyberscopes
|
- cyberscopes
|
||||||
- cybercards
|
- cybercards
|
||||||
themesDir: themes
|
themesDir: ../../..
|
||||||
pygmentsUseClasses: true
|
pygmentsUseClasses: true
|
||||||
|
pagination:
|
||||||
|
pagerSize: 6
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
|
||||||
|
@ -17,8 +18,8 @@ params:
|
||||||
logo: cc-logo.png
|
logo: cc-logo.png
|
||||||
favicon: icon-star-bl.png
|
favicon: icon-star-bl.png
|
||||||
|
|
||||||
github: https://github.com/cyberconcepts
|
git:
|
||||||
sourcehut: https://git.sr.ht/~cco
|
- https://git.cy7.eu/cco
|
||||||
email: helmutm@cy55.de
|
email: helmutm@cy55.de
|
||||||
|
|
||||||
copyright:
|
copyright:
|
||||||
|
|
|
@ -28,3 +28,4 @@ Please enter login data:
|
||||||
|
|
||||||
{{< /hx/data-form >}}
|
{{< /hx/data-form >}}
|
||||||
|
|
||||||
|
{{< hx/load domain="auth" action="show/form/login" >}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue