diff --git a/web/site/layouts/shortcodes/relrefn.html b/web/site/layouts/shortcodes/relrefn.html new file mode 100644 index 00000000..fd7383c8 --- /dev/null +++ b/web/site/layouts/shortcodes/relrefn.html @@ -0,0 +1,4 @@ +{{ $_hugo_config := `{ "version": 1 }` }} +{{ $ref := index .Params 0 }} +{{ $page := .Page.GetPage $ref }} +{{- "" -}}{{if eq .Page.File.Ext "md"}}{{.Inner|markdownify}}{{else}}{{.Inner|htmlUnescape|safeHTML}}{{end}}{{- "" -}}