added new shortcodes and respective docs

This commit is contained in:
Nuno Coração
2022-10-06 23:52:51 +01:00
parent 7e613a6219
commit 7ba6c3661d
7 changed files with 86 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
{{ $parent := .Page.RelPermalink }}
<section class="w-full mt-10 mb-10">
{{ $RelPermalink := .Get "link" }}
{{ range ( where .Site.RegularPages "RelPermalink" $RelPermalink | first 1 ) }}
{{ if not (eq .RelPermalink $parent) }}
{{ partial "article-link.html" . }}
{{ end }}
{{end}}
</section>