{{ $limit := .Get "limit" | default 1 }} {{ $title := .Get "title" | default (i18n "shortcode.recent_articles" | emojify) }} {{ $parent := .Page.RelPermalink }} {{ $where := .Get "where" }} {{ $value := .Get "value" }}

{{ $title }}

{{ if $where }} {{ range ( where .Site.RegularPages $where $value | first $limit ) }} {{ if not (eq .RelPermalink $parent) }} {{ partial "article-link/simple.html" . }} {{ end }} {{end}} {{ else }} {{ range .Site.RegularPages | first $limit }} {{ if not (eq .RelPermalink $parent) }} {{ partial "article-link/simple.html" . }} {{ end }} {{end}} {{ end }}