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

21 lines
550 B
HTML
Raw Normal View History

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
"ctx" .
"author" $author
2024-10-18 07:33:33 +00:00
"card" $card
"content" $content
"cite" $cite
"title" $title
"ref" $ref
"caption" $caption }}
2024-10-12 18:45:14 +00:00
{{ partial "mf2/h-cite.html" $opts }}