summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/article-list.html
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-09-21 17:32:32 +0200
committerNantha Sorubakanthan <nantha@mielota.com>2025-09-21 17:32:32 +0200
commitdf3d7d5734855f72b72bdb18bbf9e3599dec0156 (patch)
treeeb7111173c5bb3660505ea565e0f7e79d9c04274 /layouts/shortcodes/article-list.html
first commit
Diffstat (limited to 'layouts/shortcodes/article-list.html')
-rw-r--r--layouts/shortcodes/article-list.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html
new file mode 100644
index 0000000..755b229
--- /dev/null
+++ b/layouts/shortcodes/article-list.html
@@ -0,0 +1,6 @@
+<ul>
+ {{- range where .Site.RegularPages "Type" (.Get "category") | first 7 }}
+ <li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{- end }}
+ <li><i><a href="{{ .Get "category" }}">Plus...</a></i></li>
+</ul>