diff --git a/exampleSite/content/app/test1.md b/exampleSite/content/app/test1.md index bc52390..54bd6ff 100644 --- a/exampleSite/content/app/test1.md +++ b/exampleSite/content/app/test1.md @@ -1,10 +1,10 @@ --- title: "example" -summary: "" +summary: "Test Page #1" img: pageid: test1 -domains: [] -topics: [] +domains: [App] +topics: [Examples] date: 2023-03-01 author: helmutm draft: false @@ -20,4 +20,6 @@ cyberscopes example site - use petite-vue in Hugo-generated sites. {{< pv/display expr="`${data.firstname} ${data.lastname}`.trim() || '???'" >}} +{{< pv/display name="email" >}} + {{< pv/debug >}} diff --git a/layouts/shortcodes/pv/display.html b/layouts/shortcodes/pv/display.html index 68c406d..f1aae12 100644 --- a/layouts/shortcodes/pv/display.html +++ b/layouts/shortcodes/pv/display.html @@ -1,7 +1,10 @@ {{- $name := .Get "name" | default "textline" -}} {{- $expr := .Get "expr" | default (printf "data.%s" $name) -}} {{- $default := .Get "default" | default "" -}} +{{- $tcells := (and .Parent .Parent.Get "tcells") | default false -}} +{{- if $tcells }}