final polish

This commit is contained in:
Nuno Coração
2023-01-24 22:35:14 +00:00
parent 3652ad0a5b
commit 0dd1c14e74
12 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{{ $limit := .Get "limit" }}
{{ $limit := .Get "limit" | default 1 }}
{{ $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 ) }}
{{ range ( where .Site.RegularPages $where $value | first $limit ) }}
{{ if not (eq .RelPermalink $parent) }}
{{ partial "article-link/simple.html" . }}
{{ end }}