2024-10-12 18:45:14 +00:00
|
|
|
{{ $datapath := (split (.Get "card") "/") }}
|
|
|
|
{{ $author := .Page.Site.Data.people }}
|
2024-10-05 06:27:07 +00:00
|
|
|
{{ range $datapath }}
|
|
|
|
{{ $author = index $author . }}
|
|
|
|
{{ end }}
|
2024-10-12 18:45:14 +00:00
|
|
|
{{ $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 }}
|