mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
added new shortcodes and respective docs
This commit is contained in:
9
layouts/shortcodes/article.html
Normal file
9
layouts/shortcodes/article.html
Normal 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>
|
||||
Reference in New Issue
Block a user