Refactor code structure for improved readability and maintainability

This commit is contained in:
Fundor333
2025-04-15 20:04:20 +02:00
parent 057b4aeac4
commit e9d25361a6
11 changed files with 21 additions and 13 deletions

View File

@@ -3,4 +3,5 @@ title: "{{ replace .Name "-" " " | title }}"
type: page type: page
specialpost: true specialpost: true
allpage: true allpage: true
summary:
--- ---

View File

@@ -43,3 +43,5 @@ services:
taxonomies: taxonomies:
series: series series: series
category: categories
tag: tags

View File

@@ -3,7 +3,7 @@ title: "Blogroll"
type: page type: page
specialpost: true specialpost: true
allpage: true allpage: true
summary: A list of my favorites sites
--- ---
{{< opmlblogroll >}} {{< opmlblogroll >}}

View File

@@ -3,6 +3,7 @@ title: "Colophon"
type: page type: page
specialpost: true specialpost: true
allpage: true allpage: true
summary: Info about this site publication/build
--- ---
> In publishing, a colophon (/ˈkɒləfən, -fɒn/) is a brief statement containing information about the publication of a book such as an "imprint" (the place of publication, the publisher, and the date of publication). > In publishing, a colophon (/ˈkɒləfən, -fɒn/) is a brief statement containing information about the publication of a book such as an "imprint" (the place of publication, the publisher, and the date of publication).

View File

@@ -5,7 +5,7 @@ type: page
outputs: outputs:
- 'html' - 'html'
allpage: true allpage: true
summary: How to follow or contact me
--- ---
This is where you can connect with me. This is where you can connect with me.

View File

@@ -6,7 +6,7 @@ date: 2000-08-20T12:00:00+02:00
outputs: outputs:
- 'html' - 'html'
allpage: true allpage: true
summary: Feed from my personal blog and similar
--- ---
This page collects content I'm producing in some way or the other, and is consumable with RSS. This page collects content I'm producing in some way or the other, and is consumable with RSS.
[Learn more about the idea](https://marcus.io/blog/making-rss-more-visible-again-with-slash-feeds). [Learn more about the idea](https://marcus.io/blog/making-rss-more-visible-again-with-slash-feeds).

View File

@@ -6,6 +6,7 @@ allpage: true
date: 2000-08-20T12:00:00+02:00 date: 2000-08-20T12:00:00+02:00
outputs: outputs:
- 'html' - 'html'
summary: Here I write what I'm working or studing for now
--- ---
This is my now page, and if you have your own site, [you should make one too](https://nownownow.com/about). This is my now page, and if you have your own site, [you should make one too](https://nownownow.com/about).

View File

@@ -9,7 +9,7 @@ date: 2000-08-20T12:00:00+02:00
outputs: outputs:
- 'html' - 'html'
allpage: true allpage: true
summary: My tech stuffs, from every day to work tech
--- ---
Specifics about the hardware and software equipment I use for work and for my personal life. Specifics about the hardware and software equipment I use for work and for my personal life.
@@ -46,6 +46,10 @@ The page is part of the [uses.tech](https://uses.tech/) project.
* [MelGeek MOJO68 Advance](https://www.melgeek.com/products/melgeek-mojo68-plastic-advance-see-through-custom-programmable-mechanical-keyboard) * [MelGeek MOJO68 Advance](https://www.melgeek.com/products/melgeek-mojo68-plastic-advance-see-through-custom-programmable-mechanical-keyboard)
![Epomaker Split 65](split65_pic.jpg)
* [Epomaker Split 65](https://epomaker.com/products/epomaker-split-65?_pos=4&_sid=37b0e8fa3&_ss=r)
![Blue Yeti](blue_yeti.png) ![Blue Yeti](blue_yeti.png)
* [Blue Yeti Microfone](https://www.amazon.it/gp/product/B01LY6Z2M6) * [Blue Yeti Microfone](https://www.amazon.it/gp/product/B01LY6Z2M6)

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

View File

@@ -1,9 +1,8 @@
<p> <p id="tags">
{{ with .Params.tags }} {{ range sort . }} {{ range .Params.tags }}
#<a class="p-category tag" rel="tag" href="#">{{ .}}</a> #<a class="p-category tag" rel="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
{{ end }} {{ end }} {{ end }}
{{ range .Params.categories }}
{{ with .Params.categories }} {{ range sort . }} #<a class="p-category tag" rel="tag" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
#<a class="p-category tag" rel="tag" href="#">{{ .}}</a> {{ end }}
{{ end }} {{ end }}
</p> </p>

View File

@@ -1,7 +1,7 @@
<ul> <ul>
{{ range (where .Site.RegularPages.ByTitle "Params.allpage" "eq" true) }} {{ range (where .Site.RegularPages.ByTitle "Params.allpage" "eq" true) }}
<li> <li>
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}"><b>{{ .Title }}</b>: {{.Summary}}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>