2024-10-18 07:33:33 +00:00
|
|
|
{{- $datapath := (split (.Get "card") "/") }}
|
|
|
|
{{- $card := .Page.Site.Data.people }}
|
|
|
|
{{- range $datapath }}
|
|
|
|
{{- $card = index $card . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $author := .Get "author" }}
|
|
|
|
{{- $content := .Page.RenderString (dict "display" "block") .Inner }}
|
|
|
|
{{- $cite := .Get "cite" }}
|
|
|
|
{{- $title := .Get "title" }}
|
|
|
|
{{- $ref := .Get "ref" }}
|
|
|
|
{{- $caption := .Get "caption" }}
|
|
|
|
{{- $opts := dict
|
2024-10-15 08:09:14 +00:00
|
|
|
"ctx" .
|
|
|
|
"author" $author
|
2024-10-18 07:33:33 +00:00
|
|
|
"card" $card
|
2024-10-15 08:09:14 +00:00
|
|
|
"content" $content
|
|
|
|
"cite" $cite
|
|
|
|
"title" $title
|
|
|
|
"ref" $ref
|
|
|
|
"caption" $caption }}
|
2024-10-12 18:45:14 +00:00
|
|
|
{{ partial "mf2/h-cite.html" $opts }}
|