diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-28 10:46:57 +0100 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-28 10:47:46 +0100 |
| commit | 3d4c9512aeaabde1c99e38250eb16aa3345e269d (patch) | |
| tree | 943efdde3c60878353e6e1dadc670123d38e7f48 /layouts/shortcodes | |
| parent | 0d747afe10bd5b5731e203610119d48afe57385f (diff) | |
Update website
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/article-list.html | 3 | ||||
| -rw-r--r-- | layouts/shortcodes/time-now.html | 1 |
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" }} |
