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
|
||||
title: cyberscopes example site
|
||||
summary: explore htmx in a Hugo-generated site.
|
||||
paginate: 6
|
||||
theme:
|
||||
- cyberscopes
|
||||
- cybercards
|
||||
themesDir: themes
|
||||
themesDir: ../../..
|
||||
pygmentsUseClasses: true
|
||||
pagination:
|
||||
pagerSize: 6
|
||||
|
||||
params:
|
||||
|
||||
|
@ -17,8 +18,8 @@ params:
|
|||
logo: cc-logo.png
|
||||
favicon: icon-star-bl.png
|
||||
|
||||
github: https://github.com/cyberconcepts
|
||||
sourcehut: https://git.sr.ht/~cco
|
||||
git:
|
||||
- https://git.cy7.eu/cco
|
||||
email: helmutm@cy55.de
|
||||
|
||||
copyright:
|
||||
|
|
|
@ -28,3 +28,4 @@ Please enter login data:
|
|||
|
||||
{{< /hx/data-form >}}
|
||||
|
||||
{{< hx/load domain="auth" action="show/form/login" >}}
|
||||
|
|
Loading…
Add table
Reference in a new issue