From 7869c36bd99d5fc03b05512e0090f1b0f032ca86 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Wed, 29 Oct 2025 19:06:13 +0100 Subject: more changes, shortcodes, idk I forgot --- layouts/_default/single.html | 11 +++++++---- layouts/shortcodes/article-list.html | 5 +---- layouts/shortcodes/img.html | 1 + layouts/shortcodes/sml.html | 1 + 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 layouts/shortcodes/img.html create mode 100644 layouts/shortcodes/sml.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3ee3cf5..3bc97a2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,8 +1,4 @@ {{ define "main" }} -{{ with .Params.copied }} -This article is copied from {{ index . - 0}} -{{ end }} {{ with .Params.icon }} {{ end }} @@ -11,4 +7,11 @@ {{.TableOfContents}} {{ end }} {{- .Content }} +{{ with .Params.copied }} +

+ + This article is copied from {{ index . 0}} + +

+{{ end }} {{ end }} 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 @@ -

- {{ .Get "category" | title }} -

-See more... +See more... 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 @@ +{{ .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 @@ +{{ .Inner }} -- cgit v1.2.3