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