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 --- content/_index.md | 7 ++++++- content/stuff.md | 6 ++---- hugo.yaml | 3 +++ layouts/_default/single.html | 11 +++++++---- layouts/shortcodes/article-list.html | 5 +---- layouts/shortcodes/img.html | 1 + layouts/shortcodes/sml.html | 1 + 7 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 layouts/shortcodes/img.html create mode 100644 layouts/shortcodes/sml.html diff --git a/content/_index.md b/content/_index.md index 5fdb584..5a1414b 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,11 +8,16 @@ draft: false table: false --- -Hi lovely-little-thing browsing the web, welcome to my website. The last time I modified it was like... The {{< time-now >}} +Hi lovely-little-thing browsing the web, welcome to my website. If you want to subscribe to the blog's rss feed, it's [here](/index.xml) +## Blog + {{< article-list category="blog" number="5" >}} + +## Guide + {{< article-list category="guide" number="5" >}} There is useful links at the bottom of this page. diff --git a/content/stuff.md b/content/stuff.md index 0cf906d..8512160 100644 --- a/content/stuff.md +++ b/content/stuff.md @@ -51,11 +51,9 @@ These guides helped me a lot. Checkout Denshi's and Luke Smith's video tutorial - [Comfy.Guide](https://comfy.guide) - [LandChad.net](https://landchad.net) -### Articles I think about from time to time +### Articles I really like -- [Queen of Beauty](https://denshi.org/blog/queen-of-beauty/) -- [Planes Are Cool](https://zacoons.com/blog/2025-08-02-planes-are-cool/) -- [Backyard Bees](https://denshi.org/blog/backyard-bees/) +{{< article-list category="copy" number="5">}} ~~\~ diff --git a/hugo.yaml b/hugo.yaml index f51508e..8fe7579 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -5,6 +5,9 @@ title: Mielota markup: highlight: style: dracula + goldmark: + renderer: + unsafe: false params: email: mailto:nantha@mielota.com 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