summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-10-28 10:46:57 +0100
committerNantha Sorubakanthan <nantha@mielota.com>2025-10-28 10:47:46 +0100
commit3d4c9512aeaabde1c99e38250eb16aa3345e269d (patch)
tree943efdde3c60878353e6e1dadc670123d38e7f48 /layouts/shortcodes
parent0d747afe10bd5b5731e203610119d48afe57385f (diff)
Update website
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/article-list.html3
-rw-r--r--layouts/shortcodes/time-now.html1
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html
index 338643c..090d654 100644
--- a/layouts/shortcodes/article-list.html
+++ b/layouts/shortcodes/article-list.html
@@ -1,3 +1,6 @@
+<h2>
+ {{ .Get "category" | title }}
+</h2>
<ul>
{{- range where .Site.RegularPages "Type" (.Get "category") | first (.Get "number") }}
<li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
diff --git a/layouts/shortcodes/time-now.html b/layouts/shortcodes/time-now.html
new file mode 100644
index 0000000..d09ddc4
--- /dev/null
+++ b/layouts/shortcodes/time-now.html
@@ -0,0 +1 @@
+{{ time.Now.Format "02/01/2006" }}