diff --git a/layouts/shortcodes/ilink.html b/layouts/shortcodes/ilink.html new file mode 100644 index 0000000..4c64fde --- /dev/null +++ b/layouts/shortcodes/ilink.html @@ -0,0 +1,5 @@ +{{- $pages := where .Site.RegularPages "Params.pageid" "eq" (.Get "pid") -}} +{{- $inner := .Inner -}} +{{- range $pages -}} +{{ or $inner .Title | markdownify }} +{{- end -}}