work in progess: embed login form rendered on server

This commit is contained in:
Helmut Merz 2025-03-14 13:22:53 +01:00
parent add89bcf2a
commit 94ad5dd0ae
3 changed files with 13 additions and 4 deletions

View 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>

View file

@ -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:

View file

@ -28,3 +28,4 @@ Please enter login data:
{{< /hx/data-form >}}
{{< hx/load domain="auth" action="show/form/login" >}}