mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
21 lines
No EOL
744 B
HTML
21 lines
No EOL
744 B
HTML
|
|
{{ $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> |