mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
16 lines
451 B
HTML
16 lines
451 B
HTML
{{- $content := .Content -}}
|
|
|
|
{{- if $content -}}
|
|
|
|
{{- $content = dict "Content" .Content "Ruby" .Ruby "Fraction" .Fraction "Fontawesome" .Fontawesome | partial "function/content.html" }}
|
|
|
|
{{- with .FeaturedImage }}
|
|
{{- $content = add (printf "<img src=%q alt=%q referrerpolicy=%q>" . "featured image" "no-referrer") $content }}
|
|
{{- end }}
|
|
|
|
{{- $content = $content | transform.XMLEscape | safeHTML -}}
|
|
|
|
{{- end }}
|
|
|
|
{{- return $content -}}
|