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

11 lines
451 B
HTML
Raw Normal View History

2024-10-12 18:45:14 +00:00
{{ $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" }}
{{ $name := .Get "name" }}
{{ $caption := .Get "caption" }}
{{ $opts := dict "ctx" . "author" $author "content" $content "cite" $cite "name" $name "caption" $caption }}
{{ partial "mf2/h-cite.html" $opts }}