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 | |
| parent | 0d747afe10bd5b5731e203610119d48afe57385f (diff) | |
Update website
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/article-list.html | 3 | ||||
| -rw-r--r-- | layouts/shortcodes/time-now.html | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 580f3c5..ac84d93 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -35,7 +35,7 @@ <a href="/stuff">stuff</a> <a href="/contact">contact</a> <a href="https://git.mielota.com/mielota">git</a> - <a href="https://dns.mielota.com/">dns</a> + <a href="https://dns.mielota.com">dns</a> </nav> {{ else }} <div style="display: flex;justify-content: space-between;align-items: center;"> 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" }} |
