Assign template context to var

This commit is contained in:
Will Faught
2023-01-29 10:56:57 -08:00
parent 548af63634
commit 64e148ab6f
32 changed files with 262 additions and 199 deletions

View File

@@ -1,23 +1,25 @@
{{ $alt := .alt }}
{{ $caption := .caption }}
{{ $compact := .compact }}
{{ $float := .float }}
{{ $height := .height }}
{{ $horizontal := .horizontal }}
{{ $link := .link }}
{{ $maxheight := .maxheight }}
{{ $maxwidth := .maxwidth }}
{{ $method := .method }}
{{ $number := .number }}
{{ $numbered := .numbered }}
{{ $options := .options }}
{{ $page := .page }}
{{ $raw := .raw }}
{{ $resource := .resource }}
{{ $src := .src }}
{{ $title := .title }}
{{ $vertical := .vertical }}
{{ $width := .width }}
{{ $params := . }}
{{ $alt := $params.alt }}
{{ $caption := $params.caption }}
{{ $compact := $params.compact }}
{{ $float := $params.float }}
{{ $height := $params.height }}
{{ $horizontal := $params.horizontal }}
{{ $link := $params.link }}
{{ $maxheight := $params.maxheight }}
{{ $maxwidth := $params.maxwidth }}
{{ $method := $params.method }}
{{ $number := $params.number }}
{{ $numbered := $params.numbered }}
{{ $options := $params.options }}
{{ $page := $params.page }}
{{ $raw := $params.raw }}
{{ $resource := $params.resource }}
{{ $src := $params.src }}
{{ $title := $params.title }}
{{ $vertical := $params.vertical }}
{{ $width := $params.width }}
{{ $content := partial "paige/img.html" (dict
"alt" $alt