trwnh.com/unified.test.hugo/layouts/shortcodes/quote.html

19 lines
No EOL
499 B
HTML

{{ $datapath := (split (.Get "card") "/") }}
{{ $author := .Page.Site.Data.people }}
{{ range $datapath }}
{{ $author = index $author . }}
{{ end }}
{{ $content := .Page.RenderString (dict "display" "block") .Inner }}
{{ $cite := .Get "cite" }}
{{ $title := .Get "title" }}
{{ $ref := .Get "ref" }}
{{ $caption := .Get "caption" }}
{{ $opts := dict
"ctx" .
"author" $author
"content" $content
"cite" $cite
"title" $title
"ref" $ref
"caption" $caption }}
{{ partial "mf2/h-cite.html" $opts }}