mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-06 11:09:21 +00:00
✨ Customizable name for the List shortcode
This commit is contained in:
1 parent
abfbdb8a4a
commit
fa19f8c4d0
2 files changed
+9
-7
No files matched your search
@@ -1,9 +1,10 @@
|
||||
|
||||
{{ $limit := .Get "limit" | default 1 }}
|
||||
{{ $title := .Get "title" | default (i18n "shortcode.recent_articles" | emojify) }}
|
||||
{{ $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>
|
||||
<h2 class="mt-20 text-2xl font-extrabold mb-10">{{ $title }}</h2>
|
||||
<section class="space-y-10 w-full mt-10 mb-10">
|
||||
{{ if $where }}
|
||||
{{ range ( where .Site.RegularPages $where $value | first $limit ) }}
|
||||
|
||||
Reference in new issue
Block a user