From 94ad5dd0aec2c6250df49c9d9076debe2a3e6e39 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 14 Mar 2025 13:22:53 +0100 Subject: [PATCH] work in progess: embed login form rendered on server --- layouts/shortcodes/hx/load.html | 7 +++++++ sites/hx/config.yaml | 9 +++++---- sites/hx/content/auth/login.md | 1 + 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 layouts/shortcodes/hx/load.html diff --git a/layouts/shortcodes/hx/load.html b/layouts/shortcodes/hx/load.html new file mode 100644 index 0000000..c7d95b3 --- /dev/null +++ b/layouts/shortcodes/hx/load.html @@ -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" -}} +
+
diff --git a/sites/hx/config.yaml b/sites/hx/config.yaml index 938a742..62a00c3 100644 --- a/sites/hx/config.yaml +++ b/sites/hx/config.yaml @@ -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: diff --git a/sites/hx/content/auth/login.md b/sites/hx/content/auth/login.md index cfffc82..fa3eae8 100644 --- a/sites/hx/content/auth/login.md +++ b/sites/hx/content/auth/login.md @@ -28,3 +28,4 @@ Please enter login data: {{< /hx/data-form >}} +{{< hx/load domain="auth" action="show/form/login" >}}