mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-03 09:39:46 +00:00
added new shortcodes and respective docs
This commit is contained in:
1 parent
7e613a6219
commit
7ba6c3661d
7 files changed
+86
-5
No files matched your search
@@ -0,0 +1,21 @@
|
||||
|
||||
{{ $limit := .Get "limit" }}
|
||||
{{ $parent := .Page.RelPermalink }}
|
||||
{{ $where := .Get "where" }}
|
||||
{{ $value := .Get "value" }}
|
||||
<h2 class="mt-20 text-2xl font-extrabold mb-10">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
|
||||
<section class="space-y-10 w-full mt-10 mb-10">
|
||||
{{ if $where }}
|
||||
{{ range ( where .Site.RegularPages $where $value | first 1 ) }}
|
||||
{{ if not (eq .RelPermalink $parent) }}
|
||||
{{ partial "article-link.html" . }}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
{{ else }}
|
||||
{{ range .Site.RegularPages | first $limit }}
|
||||
{{ if not (eq .RelPermalink $parent) }}
|
||||
{{ partial "article-link.html" . }}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
</section>
|
||||
Reference in new issue
Block a user