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 | |
| parent | bbcea27fcb43b7d554431bba750e6bfa9016ad37 (diff) | |
more changes, shortcodes, idk I forgot
| -rw-r--r-- | content/_index.md | 7 | ||||
| -rw-r--r-- | content/stuff.md | 6 | ||||
| -rw-r--r-- | hugo.yaml | 3 | ||||
| -rw-r--r-- | layouts/_default/single.html | 11 | ||||
| -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 |
7 files changed, 21 insertions, 13 deletions
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">}} ~~\~ @@ -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 }} -<small><i>This article is copied from <a href="{{ index . 1 }}">{{ index . - 0}}</a></i></small> -{{ end }} {{ with .Params.icon }} <img style="height: 10em;display: block;margin: auto;" src="{{ . }}"> {{ end }} @@ -11,4 +7,11 @@ {{.TableOfContents}} {{ end }} {{- .Content }} +{{ with .Params.copied }} +<p style="text-align: right;"> + <small> + <i>This article is copied from <a href="{{ index . 1 }}">{{ index . 0}}</a></i> + </small> +</p> +{{ 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 @@ -<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> |
