summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2025-10-29 18:08:07 +0100
committerNantha Sorubakanthan <nantha@mielota.com>2025-10-29 18:08:20 +0100
commitc69bbc7c0ee77c11dbc7cae346dbf282fffb956d (patch)
tree189dd84ec62e9a0372edfa6b4025be881e2d0139
parent31d55a1d0688a6cbbb0f8a1bef5f325ccfe782b8 (diff)
change header and color for copied articles also update stuff
-rw-r--r--archetypes/default.md5
-rw-r--r--content/_index.md5
-rw-r--r--content/blog/someone-emailed-me.md4
-rw-r--r--content/blog/trying-out-helix.md4
-rw-r--r--content/contact.md5
-rw-r--r--content/guide/archinstall.md4
-rw-r--r--content/guide/stuff-about-dns-and-ip.md5
-rw-r--r--content/stuff.md10
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/guide/single.html7
-rw-r--r--layouts/shortcodes/article-list.html4
11 files changed, 49 insertions, 15 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index 45b16e7..8c6989f 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,6 +1,9 @@
---
title: {{ replace .Name "-" " " | title }}
date: {{ .Date }}
-draft: true
index: false
+#draft: true
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
diff --git a/content/_index.md b/content/_index.md
index a302c1f..5fdb584 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -1,6 +1,11 @@
---
title: "cool place"
date: 2025-09-14T11:51:17+02:00
+index: false
+draft: false
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
Hi lovely-little-thing browsing the web, welcome to my website. The last time I modified it was like... The {{< time-now >}}
diff --git a/content/blog/someone-emailed-me.md b/content/blog/someone-emailed-me.md
index 548fc56..d138971 100644
--- a/content/blog/someone-emailed-me.md
+++ b/content/blog/someone-emailed-me.md
@@ -2,6 +2,10 @@
title: "Someone emailed me"
date: 2025-10-05T08:07:49+02:00
index: true
+draft: false
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
## The actual email part
diff --git a/content/blog/trying-out-helix.md b/content/blog/trying-out-helix.md
index 6fc40e0..09fac2f 100644
--- a/content/blog/trying-out-helix.md
+++ b/content/blog/trying-out-helix.md
@@ -2,6 +2,10 @@
title: "Trying out Helix"
date: 2025-09-22T09:08:19+02:00
index: true
+draft: false
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
## Intro
diff --git a/content/contact.md b/content/contact.md
index 708c3b6..e67ac39 100644
--- a/content/contact.md
+++ b/content/contact.md
@@ -1,6 +1,11 @@
---
title: "Contact me"
date: 2025-10-26T08:43:25+01:00
+draft: false
+index: false
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
Useful infos to contact me.
diff --git a/content/guide/archinstall.md b/content/guide/archinstall.md
index d3209dd..1d5a2c3 100644
--- a/content/guide/archinstall.md
+++ b/content/guide/archinstall.md
@@ -2,6 +2,10 @@
title: Archinstall
date: 2025-10-05T16:33:24+02:00
index: false
+draft: false
+icon: https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Arch_Linux_%22Crystal%22_icon.svg/640px-Arch_Linux_%22Crystal%22_icon.svg.png
+#copied: ["me", "/"]
+table: true
---
> I install Arch Linux for french people in this guide. Also, Arch Linux is really popular, but you should checkout alternatives like [Artix Linux](https://artixlinux.org). You should [avoid systemd](https://unixdigest.com/articles/the-real-motivation-behind-systemd.html)
diff --git a/content/guide/stuff-about-dns-and-ip.md b/content/guide/stuff-about-dns-and-ip.md
index b336d30..07b668d 100644
--- a/content/guide/stuff-about-dns-and-ip.md
+++ b/content/guide/stuff-about-dns-and-ip.md
@@ -1,8 +1,11 @@
---
title: Stuff about DNS and IP
date: 2025-10-27T13:46:54+01:00
-draft: true
index: false
+draft: true
+#icon: ''
+#copied: ["me", "/"]
+table: true
---
## IP addresses
diff --git a/content/stuff.md b/content/stuff.md
index ba1cfd2..0cf906d 100644
--- a/content/stuff.md
+++ b/content/stuff.md
@@ -1,6 +1,11 @@
---
title: "Stuff"
date: 2025-10-28T10:53:00+02:00
+index: false
+draft: false
+#icon: ''
+#copied: ["me", "/"]
+table: false
---
## Software I use
@@ -49,13 +54,8 @@ These guides helped me a lot. Checkout Denshi's and Luke Smith's video tutorial
### Articles I think about from time to time
- [Queen of Beauty](https://denshi.org/blog/queen-of-beauty/)
-- [Do We Still Have School Tomorrow?](https://denshi.org/blog/do-we-still-have-school-tomorrow/)
- [Planes Are Cool](https://zacoons.com/blog/2025-08-02-planes-are-cool/)
-- [The real motivation behind systemd](https://unixdigest.com/articles/the-real-motivation-behind-systemd.html)
-- [Why is your open source project still hosted on GitHub?](https://unixdigest.com/articles/why-is-your-open-source-project-still-hosted-on-github.html)
- [Backyard Bees](https://denshi.org/blog/backyard-bees/)
-- [There is no such thing as privacy on the Internet](https://unixdigest.com/articles/there-is-no-such-thing-as-privacy-on-the-internet.html)
-- [Every Web Browser Absolutely Sucks.](https://lukesmith.xyz/articles/every-web-browser-absolutely-sucks/)
~~\~
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 366e181..3ee3cf5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,3 +1,14 @@
{{ 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 }}
+{{ if .Params.table }}
+<h2>Table of Contents</h2>
+{{.TableOfContents}}
+{{ end }}
{{- .Content }}
{{ end }}
diff --git a/layouts/guide/single.html b/layouts/guide/single.html
deleted file mode 100644
index 6efdfe0..0000000
--- a/layouts/guide/single.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{define "main"}}
-<article>
- <h2>Table of Contents</h2>
- {{.TableOfContents}}
- {{.Content}}
-</article>
-{{end}} \ No newline at end of file
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html
index 090d654..d3d826e 100644
--- a/layouts/shortcodes/article-list.html
+++ b/layouts/shortcodes/article-list.html
@@ -3,7 +3,9 @@
</h2>
<ul>
{{- range where .Site.RegularPages "Type" (.Get "category") | first (.Get "number") }}
- <li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ <li>{{ .Date.Format "02/01/06" }} - <a href="{{ .RelPermalink }}" {{ if .Params.copied }}style="color:#73daca;" {{ end
+ }}>{{
+ .Title }}</a></li>
{{- end }}
</ul>
<a href='{{ .Get "category" }}'>See more...</a>