diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 19:06:13 +0100 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 19:06:13 +0100 |
| commit | 7869c36bd99d5fc03b05512e0090f1b0f032ca86 (patch) | |
| tree | f77c4c06b1f8c675704807d659b8f2f38d28971f /layouts/shortcodes | |
| parent | bbcea27fcb43b7d554431bba750e6bfa9016ad37 (diff) | |
more changes, shortcodes, idk I forgot
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/article-list.html | 5 | ||||
| -rw-r--r-- | layouts/shortcodes/img.html | 1 | ||||
| -rw-r--r-- | layouts/shortcodes/sml.html | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html index 5341738..d533f19 100644 --- a/layouts/shortcodes/article-list.html +++ b/layouts/shortcodes/article-list.html @@ -1,10 +1,7 @@ -<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> {{- end }} </ul> -<a href='{{ .Get "category" }}'>See more...</a> +<a href='/{{ .Get "category" }}'>See more...</a> diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..013637a --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1 @@ +<img src='{{ .Get "src" }}' alt='{{ .Get "alt" }}'> diff --git a/layouts/shortcodes/sml.html b/layouts/shortcodes/sml.html new file mode 100644 index 0000000..d27ced1 --- /dev/null +++ b/layouts/shortcodes/sml.html @@ -0,0 +1 @@ +<small>{{ .Inner }}</small> |
