Fix shortcodes to enable complex nesting

This commit is contained in:
Will Faught
2023-04-25 19:16:55 -07:00
parent b06903d6c0
commit a9d822a156
10 changed files with 50 additions and 31 deletions

View File

@@ -4,6 +4,7 @@
{{ $href := $params.href }}
{{ $includepaths := $params.includepaths }}
{{ $integrity := $params.integrity }}
{{ $page := $params.page }}
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
{{ $sass := $params.sass }}
{{ $template := $params.template }}
@@ -15,7 +16,7 @@
{{ errorf "layouts/partials/paige/link.html: no href" }}
{{ end }}
{{ with partial "paige/resource.html" $href }}
{{ with partial "paige/resource.html" (dict "page" $page "url" $href) }}
{{ $resource := . }}
{{ if $template }}