{{ $limit := .Get "limit" }} {{ $parent := .Page.RelPermalink }} {{ $where := .Get "where" }} {{ $value := .Get "value" }}

{{ i18n "shortcode.recent_articles" | emojify }}

{{ if $where }} {{ range ( where .Site.RegularPages $where $value | first 1 ) }} {{ 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 }}