21 lines
No EOL
550 B
HTML
21 lines
No EOL
550 B
HTML
{{- $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
|
|
"ctx" .
|
|
"author" $author
|
|
"card" $card
|
|
"content" $content
|
|
"cite" $cite
|
|
"title" $title
|
|
"ref" $ref
|
|
"caption" $caption }}
|
|
{{ partial "mf2/h-cite.html" $opts }} |