From ecf3f13622bf15ec06d2e2dd2decdf6e2cb76a1e Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 10 Mar 2023 08:29:14 +0100 Subject: [PATCH] fieldset: make v-scope component configurable --- exampleSite/content/app/test1.md | 2 +- layouts/shortcodes/pv/debug.html | 1 + layouts/shortcodes/pv/fieldset.html | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/app/test1.md b/exampleSite/content/app/test1.md index 080ce2b..e46c7a1 100644 --- a/exampleSite/content/app/test1.md +++ b/exampleSite/content/app/test1.md @@ -5,7 +5,7 @@ img: pageid: test1 domains: [App] topics: [Examples] -date: 2023-03-02 +date: 2023-03-07 author: helmutm draft: false weight: 10 diff --git a/layouts/shortcodes/pv/debug.html b/layouts/shortcodes/pv/debug.html index 0ba126b..fed3a50 100644 --- a/layouts/shortcodes/pv/debug.html +++ b/layouts/shortcodes/pv/debug.html @@ -1,4 +1,5 @@
+

Debug Information

item id: {| conf.itemid |}
diff --git a/layouts/shortcodes/pv/fieldset.html b/layouts/shortcodes/pv/fieldset.html index 1ffb559..1a13c83 100644 --- a/layouts/shortcodes/pv/fieldset.html +++ b/layouts/shortcodes/pv/fieldset.html @@ -1,4 +1,5 @@ {{- $name := .Get "name" | default "data" -}} -
+{{- $comp := .Get "component" | default "Data" -}} +
{{ .Inner }}