From 2a96b038843838656637a2d9914b20ce1bdad912 Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Mon, 27 May 2024 23:23:17 +0200 Subject: [PATCH] added writing time variable to posts this shows the user how much time it took to write the article, just for fun --- assets/icons/hourglass-empty.svg | 1 + config/_default/params.toml | 4 ++-- content/page/about-me/index.md | 6 ------ .../guides/nix/monitoring-via-prometheus/index.md | 2 ++ layouts/partials/article/components/details.html | 11 +++++++++++ 5 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 assets/icons/hourglass-empty.svg diff --git a/assets/icons/hourglass-empty.svg b/assets/icons/hourglass-empty.svg new file mode 100644 index 0000000..9c5b6a2 --- /dev/null +++ b/assets/icons/hourglass-empty.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml index 539e7fd..1b4a945 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -12,8 +12,8 @@ lastUpdated = "Jan 02, 2006 15:04 MST" [sidebar] subtitle = "Software developer of somekind" -musicTitle = "Nate Growing Up - Labrinth" -musicUrl = "https://www.youtube.com/watch?v=mgDMTorgCPg" +musicTitle = "Hard dreams - Gesaffelstein" +musicUrl = "https://www.youtube.com/watch?v=4HnUmZOjsyU" [sidebar.avatar] diff --git a/content/page/about-me/index.md b/content/page/about-me/index.md index b921e83..e3464e5 100644 --- a/content/page/about-me/index.md +++ b/content/page/about-me/index.md @@ -45,11 +45,5 @@ I play a lot of games in my free time, mostly survival, adventure games. Some Pv You might [catch me streaming](https://live.4o1x5.dev) on my site. You are welcome to watch, maybe even if I offer nothing interesting to watch. Some of these include: Warframe, Minecraft, CS 1.6, Overwatch, Orcs must die 3 and so on... -# Future - -I plan on working in IT, more specifically backend development. -But lately I have also been thinking of becoming a System Administrator tho I have no idea how that would turn out. -The main problem I have right now is that I don't develop in languages/frameworks that are popular inside industries. Like for example Rust, I saw a few job listings about it, all requiring at least 5 years of experience (i have none). [I'm open for job inquires at all time](https://matrix.to/#/@4o1x5:4o1x5.dev) to be honest, even besides school. - Also here is a picture of my cat tiger diff --git a/content/post/guides/nix/monitoring-via-prometheus/index.md b/content/post/guides/nix/monitoring-via-prometheus/index.md index 1e37dd3..412e54f 100644 --- a/content/post/guides/nix/monitoring-via-prometheus/index.md +++ b/content/post/guides/nix/monitoring-via-prometheus/index.md @@ -17,6 +17,8 @@ tags: - Monitoring - Docker compose draft: false + +writingTime: "20m" --- # Monitoring diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 337bc7d..04490c7 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -53,6 +53,17 @@ {{ .WordCount }} words + {{ if .Params.WritingTime }} +
+ {{ partial "helper/icon" "hourglass-empty" }} + +
+ {{ end }} + + + {{ end }}