From e8ab4e3bc02ed148cb6753d241291479fa264541 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Thu, 8 Feb 2024 08:17:45 +0100 Subject: [PATCH] Adjusted post metadata for hugo --- content/blog/coding/_index.md | 8 +- .../blog/coding/functional_programming.org | 10 +-- content/blog/coding/index.org | 25 ------ content/blog/coding/nested_intervals.org | 8 +- content/blog/food/_index.md | 8 +- content/blog/food/index.org | 21 ----- content/blog/food/vegetarian-fish-bagel.org | 1 - content/blog/handhelds/_index.md | 8 +- content/blog/handhelds/formatting-an-ipod.org | 1 - content/blog/handhelds/index.org | 38 ---------- .../using-linux-mobile-for-1-month.org | 1 - content/blog/index.org | 30 -------- content/blog/projects/index.org | 33 -------- content/blog/projects/polarplayer-studio.org | 1 - content/config.org | 13 ---- content/index.org | 62 --------------- content/sitemap.md | 3 + data/vcs.yml | 10 +++ layouts/_default/single.html | 10 +-- layouts/blog/list.html | 76 ++++++++++--------- layouts/blog/single.html | 30 ++++---- layouts/index.html | 15 +--- layouts/sitemap/single.html | 22 ++++++ 23 files changed, 113 insertions(+), 321 deletions(-) delete mode 100644 content/blog/coding/index.org delete mode 100644 content/blog/food/index.org delete mode 100644 content/blog/handhelds/index.org delete mode 100644 content/blog/index.org delete mode 100644 content/blog/projects/index.org delete mode 100644 content/config.org delete mode 100644 content/index.org create mode 100644 content/sitemap.md create mode 100644 data/vcs.yml create mode 100644 layouts/sitemap/single.html diff --git a/content/blog/coding/_index.md b/content/blog/coding/_index.md index 5b4a5df..670d60b 100644 --- a/content/blog/coding/_index.md +++ b/content/blog/coding/_index.md @@ -1,7 +1,7 @@ -#+TITLE: Coding -#+DESCRIPTION: Are you up for a coding challenge? You can find some of my weird side projects here -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil +--- +title: Coding +description: Are you up for a coding challenge? You can find some of my weird side projects here +--- There is nothing I can say to explain this, sometimes I just feel like writing some lines of code. diff --git a/content/blog/coding/functional_programming.org b/content/blog/coding/functional_programming.org index 5ee8be0..9ed2b73 100644 --- a/content/blog/coding/functional_programming.org +++ b/content/blog/coding/functional_programming.org @@ -1,9 +1,7 @@ -#+TITLE: Let's check out functional programming -#+DESCRIPTION: (functional (programming)) -#+KEYWORDS: functional-programming, lisp, math -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil -#+DATE: <2023-02-16 Thu 17:00> +--- +title: Let's check out functional programming +description: (functional (programming)) +--- * What is functional programming According to [[https://wikipediaorg/wiki/Functional_programming?lang=en][Wikipedia]], diff --git a/content/blog/coding/index.org b/content/blog/coding/index.org deleted file mode 100644 index c516bbf..0000000 --- a/content/blog/coding/index.org +++ /dev/null @@ -1,25 +0,0 @@ -#+TITLE: Coding -#+DESCRIPTION: Are you up for a coding challenge? You can find some of my weird side projects here -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil - -There is nothing I can say to explain this, -sometimes I just feel like writing some lines of code. -But instead of throwing them away like a normal person, -I hold onto them. - -And this is how they end up here. - -Test projects I start, but never finish -or challenges I attempt, -that weren't as interesting as I hoped they would be, -or that just went nowhere. - -#+begin_src elisp :exports results :results value list -(load-file "../../../el/get-posts.el") -(get-posts "../../feeds/coding") -#+end_src - -#+RESULTS: -- [[file:./../../feeds/coding/functional_programming.org][Let's check out functional programming]] -- [[file:./../../feeds/coding/nested_intervals.org][Let's check out nested intervals]] diff --git a/content/blog/coding/nested_intervals.org b/content/blog/coding/nested_intervals.org index f779b98..5afb982 100644 --- a/content/blog/coding/nested_intervals.org +++ b/content/blog/coding/nested_intervals.org @@ -1,9 +1,5 @@ -#+TITLE: Let's check out nested intervals -#+DESCRIPTION: [nested, [inter, val]] -#+KEYWORDS: nested-intervals, intervals, lisp, math, pi -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil -#+DATE: <2023-05-21 Sun 12:00> +title: Let's check out nested intervals +description: [nested, [inter, val]] * Nested Intervals diff --git a/content/blog/food/_index.md b/content/blog/food/_index.md index 926b28d..d526560 100644 --- a/content/blog/food/_index.md +++ b/content/blog/food/_index.md @@ -1,7 +1,7 @@ -#+TITLE: Food -#+DESCRIPTION: Mhhhh. Tasty. -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil +--- +title: Food +description: Mhhh. Tasty +--- Besides programming, I enjoy cooking and baking. diff --git a/content/blog/food/index.org b/content/blog/food/index.org deleted file mode 100644 index d7f5d15..0000000 --- a/content/blog/food/index.org +++ /dev/null @@ -1,21 +0,0 @@ -#+TITLE: Food -#+DESCRIPTION: Mhhhh. Tasty. -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil - -Besides programming, -I enjoy cooking and baking. - -Here you can find some of my favorite recipes. - -#+begin_src elisp :exports results :results value list -(load-file "../../../el/get-posts.el") -(get-posts "../../feeds/food") -#+end_src - -#+RESULTS: -- [[file:./../../feeds/food/vegetarian-fish-bagel.org][Vegetarian Fish Bagel]] - -You can also follow this topic using it's specific rss feed, -using your favorite rss reader, -by copying [[./rss][this link]]. diff --git a/content/blog/food/vegetarian-fish-bagel.org b/content/blog/food/vegetarian-fish-bagel.org index 2f50e1c..a43e713 100644 --- a/content/blog/food/vegetarian-fish-bagel.org +++ b/content/blog/food/vegetarian-fish-bagel.org @@ -1,7 +1,6 @@ #+TITLE: Vegetarian Fish Bagel #+DESCRIPTION: A Bagel is perfect for breakfast or lunch #+KEYWORDS: food, bagel, vegetarian, carrot, healthy -#+SETUPFILE: ../../config.org #+OPTIONS: toc:nil num:nil #+DATE: <2023-02-16 Thu 15:00> diff --git a/content/blog/handhelds/_index.md b/content/blog/handhelds/_index.md index d2432c7..3fb59a1 100644 --- a/content/blog/handhelds/_index.md +++ b/content/blog/handhelds/_index.md @@ -1,7 +1,7 @@ -#+TITLE: Smartphone related posts -#+DESCRIPTION: Mostly me aranting about mobile phones -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil +--- +title: Smartphone related posts +description: Mostly me aranting about mobile phones +--- I guess either you love it or hate it - right? the mobileOS *war*. diff --git a/content/blog/handhelds/formatting-an-ipod.org b/content/blog/handhelds/formatting-an-ipod.org index 9541c61..29d7e25 100644 --- a/content/blog/handhelds/formatting-an-ipod.org +++ b/content/blog/handhelds/formatting-an-ipod.org @@ -1,6 +1,5 @@ #+TITLE: iPod USB Key and going back to normal #+DESCRIPTION: Resetting the iPod Nano 7g back to stock firmware -#+SETUPFILE: ../../config.org #+DATE: <2023-01-29 Sun 21:00> *DISCLAIMER: I take no responsibility for any damage you cause to your devices* diff --git a/content/blog/handhelds/index.org b/content/blog/handhelds/index.org deleted file mode 100644 index f5ee5fe..0000000 --- a/content/blog/handhelds/index.org +++ /dev/null @@ -1,38 +0,0 @@ -#+TITLE: Smartphone related posts -#+DESCRIPTION: Mostly me aranting about mobile phones -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil - -I guess either you love it or hate it - right? -the mobileOS =war=. - -Honestly I'm not a fan of either iOS and android, -but android still has the advantage of installing ~.apk~ files -and doing ~chroot~ stuff. - -And no I'm not saying that android is =the best operating system=, -acctually I think that the opposite is true: -In fact for years google has been locking down android phones. - -I've been using rooted android phones for about 5 years now, -and bought a pinephone this year. - -=You know that android uses a linux kernel!= - I hear you say. -And yes I know that, -but it is not a mainlined linux kernel, -with a lot of elements strip away from it, -and a lot of binary blobs. -Additionally most phones are stuck on ~4.*~ kernels - -#+begin_src elisp :exports results :results value list -(load-file "../../../el/get-posts.el") -(get-posts "../../feeds/handhelds") -#+end_src - -#+RESULTS: -- [[file:./../../feeds/handhelds/formatting-an-ipod.org][iPod USB Key and going back to normal]] -- [[file:./../../feeds/handhelds/using-linux-mobile-for-1-month.org][Using Linux on my phone for 1 month]] - -You can also follow this topic using it's specific rss feed, -using your favorite rss reader, -by copying [[./rss][this link]]. diff --git a/content/blog/handhelds/using-linux-mobile-for-1-month.org b/content/blog/handhelds/using-linux-mobile-for-1-month.org index 347a2bd..458b626 100644 --- a/content/blog/handhelds/using-linux-mobile-for-1-month.org +++ b/content/blog/handhelds/using-linux-mobile-for-1-month.org @@ -1,6 +1,5 @@ #+TITLE: Using Linux on my phone for 1 month #+DESCRIPTION: I've been using gnu/linux on my phone: Here is how it went -#+SETUPFILE: ../../config.org #+DATE: <2022-11-16 Wed 14:00> * My phone diff --git a/content/blog/index.org b/content/blog/index.org deleted file mode 100644 index 347129f..0000000 --- a/content/blog/index.org +++ /dev/null @@ -1,30 +0,0 @@ -#+TITLE: Blog Posts -#+DESCRIPTION: Index page with all of my blog entries listed by category -#+SETUPFILE: ../config.org -#+OPTIONS: toc:nil num:nil - -Whoooaa you have found my blog-post index. - -See below for a list of all of the posts I posted. -You can click on the folder name -if you want to see a list of all posts in that category. -Or click on the given file name if you want to read the post. - -#+begin_src elisp :exports results :results value list -(load-file "../../el/get-feeds.el") -(get-feeds "./") -#+end_src - -#+RESULTS: -- [[file:.//coding/index.org][Coding]] -- [[file:.//food/index.org][Food]] -- [[file:.//handhelds/index.org][Smartphone related posts]] -- [[file:.//projects/index.org][Projects]] -- [[file:.//queertopia/index.org][Welcome to Queertopia]] - - -If you'd rather read my posts using your favorite rss reader, -you can subscribe to the [[./rss][global rss feed]], -which contains all posts. -Or you could subscribe to the rss feeds of the individual topics, -the links can be found on the index page of the given category. diff --git a/content/blog/projects/index.org b/content/blog/projects/index.org deleted file mode 100644 index 6c8c0b9..0000000 --- a/content/blog/projects/index.org +++ /dev/null @@ -1,33 +0,0 @@ -#+TITLE: Projects -#+DESCRIPTION: A list of my featured personal projects -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil - -I enjoy building new software in rust -or writing weird JavaScript libraries. -But I also work on hardware prototypes, -i.e =floe= - -This page only contains featured projects, -if you want to see a list of all my projects -you might want to checkout -my [[https://codeberg.org/comcloudway][codeberg]] where I publish all of my rust programs -(and some other stuff), -my [[https://gitlab.com/comcloudway/][gitlab]] where I'm not as active. - -Additionally I also have a [[https://github.com/comcloudway/][github]] account, -but I only ever mirror repos over there -and occasionally use it to fork other repos. - -#+begin_src elisp :exports results :results value list -(load-file "../../../el/get-posts.el") -(get-posts "../../feeds/projects") -#+end_src - -#+RESULTS: -- [[file:./../../feeds/projects/oomph.org][Oomph]] -- [[file:./../../feeds/projects/polarplayer-studio.org][PolarPlayer-Studio]] - -You can also follow this topic using it's specific rss feed, -using your favorite rss reader, -by copying [[./rss][this link]]. diff --git a/content/blog/projects/polarplayer-studio.org b/content/blog/projects/polarplayer-studio.org index c2f5268..e351a40 100644 --- a/content/blog/projects/polarplayer-studio.org +++ b/content/blog/projects/polarplayer-studio.org @@ -1,6 +1,5 @@ #+TITLE: PolarPlayer-Studio #+DESCRIPTION: Introduction PolarPlayer-Studio -#+SETUPFILE: ../../config.org #+DATE: <2023-01-30 13:00> * Introduction diff --git a/content/config.org b/content/config.org deleted file mode 100644 index 7483562..0000000 --- a/content/config.org +++ /dev/null @@ -1,13 +0,0 @@ -#+options: html-link-use-abs-url:nil html-postamble:t html-preamble:t -#+options: html-scripts:t html-style:t html5-fancy:t tex:t -#+html_doctype: html5 -#+html_container: div -#+html_content_class: content -#+html_head: -#+AUTHOR: Jakob Meier -#+EMAIL: comcloudway@ccw.icu -#+LANGUAGE: en -#+CREATOR: All content is licensed under CC BY-SA 4.0 unless stated otherwise -#+html_link_home: / -#+html_link_up: .. -#+TITLE: This page doesn't yet have a title diff --git a/content/index.org b/content/index.org deleted file mode 100644 index 234fa28..0000000 --- a/content/index.org +++ /dev/null @@ -1,62 +0,0 @@ -#+TITLE: ccw.icu -#+DESCRIPTION: My personal web page & blog -#+SETUPFILE: ./config.org -#+EXPORT_FILE_NAME: build/index -#+OPTIONS: toc:nil num:nil - -* About me -Hi, -I'm *Jakob*. -I love writing software using *rust*. -Did I mention, that I'm super into *Linux*? -— because *I am*. - -I identify as trans/non-binary -and use =they/them= pronouns. - -** What I'm up to -I'm currently studying =Computer science= at the -=Otto von Guericke Universität=. - -If I get around to it, -I'll also put some of my favorite project on my [[file:feeds/projects/index.org][projects page]]. -But you're probably better of just checking out my [[https://codeberg.org/comcloudway][codeberg account]]. - -Oh yeah I nearly forgot: -I started packaging some [[https://pkgs.alpinelinux.org/packages?name=&branch=edge&repo=&arch=&maintainer=Jakob+Meier][alpine packages]]. -If you noticed that some of them are outdated, -please contact me (the alpine website has a button). - -* Categories -To reduce the distance you have to scroll, -I removed the /All posts/ list. - -If you are looking for something specific, -just check the appropriate category. -And if you are just here to spend some time reading, -pick a category that seems interesting to you - - -#+begin_src elisp :exports results :results value list -(load-file "../el/get-feeds.el") -(get-feeds "./feeds") -#+end_src - -#+RESULTS: -- [[file:./feeds/coding/index.org][Coding]] -- [[file:./feeds/food/index.org][Food]] -- [[file:./feeds/handhelds/index.org][Smartphone related posts]] -- [[file:./feeds/projects/index.org][Projects]] -- [[file:./feeds/queertopia/index.org][Welcome to Queertopia]] - -If you'd rather read my posts using your favorite rss reader, -you can subscribe to the [[./feeds/rss][global rss feed]], -which contains all posts. -Or you could subscribe to the rss feeds of the individual topics, -the links can be found on the index page of the given category. - -* Social -I occasionally post over on my own Firefish instance, -follow me [[https://world.ccw.icu/@comcloudway][here]]. -I'm also on [[https://pixelfed.social/comcloudway][Pixelfed]], -but I haven't posted anything in some time. diff --git a/content/sitemap.md b/content/sitemap.md new file mode 100644 index 0000000..abb2148 --- /dev/null +++ b/content/sitemap.md @@ -0,0 +1,3 @@ +--- +type: sitemap +--- diff --git a/data/vcs.yml b/data/vcs.yml new file mode 100644 index 0000000..57f54a5 --- /dev/null +++ b/data/vcs.yml @@ -0,0 +1,10 @@ +- name: hut.ccw.icu + link: https://hut.ccw.icu/~comcloudway/ +- name: sr.ht + link: https://sr.ht/~comcloudway/ +- name: codeberg + link: https://codeberg.org/comcloudway +- name: gitlab + link: https://gitlab.com/comcloudway +- name: github + link: https://github.com/comcloudway diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7e0aaef..416de8f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,16 +1,8 @@ - - - - - - {{.Title}} - - - + {{ partial "header.html" }} {{ partial "nav.html" }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 7b47df0..2c9648f 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -1,38 +1,42 @@ - - My blog posts - {{ partial "header.html" }} - -{{ partial "nav.html" }} -
- {{ .Content }} - {{ if .Sections }} -

Find out more

-

RSS feed

- {{ range .Sections }} - -

- {{ .LinkTitle }} ({{.Pages | len}} posts) -

- {{ .Description }} -
- {{ end }} - {{ else }} -

Posts

-{{ range .Pages }} -
-

- - {{.Title}} - -

- - {{.Date.Format "January 2, 2006"}} - (est {{.ReadingTime}} min) - -
- {{ end }} - {{ end }} -
-{{ partial "footer.html" }} + + My blog posts + {{ partial "header.html" }} + + {{ partial "nav.html" }} +
+ {{ .Content }} + {{ if .Sections }} +

Find out more

+

RSS feed

+ {{ range .Sections }} + +
+

+ {{ .LinkTitle }} +

+

+ ({{.Pages | len}} posts) +

+
+ {{ .Description }} +
+ {{ end }} + {{ else }} +

Posts

+ {{ range .Pages }} + +

+ {{.Title}} +

+ + {{.Date.Format "January 2, 2006"}} + ({{.ReadingTime}} min) + +

{{ .Description }}

+
+ {{ end }} + {{ end }} +
+ {{ partial "footer.html" }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 206a2e3..b8b523f 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,17 +1,17 @@ - - {{$.Title}} - {{ partial "header.html" }} - -{{ partial "nav.html" }} -
-

- {{.Title}} - - {{.Date.Format "January 2, 2006"}} - -

- {{.Content}} -
-{{ partial "footer.html" }} + + {{$.Title}} + {{ partial "header.html" }} + + {{ partial "nav.html" }} +
+

+ {{.Title}} +

+ + {{.Date.Format "January 2, 2006"}} + + {{.Content}} +
+ {{ partial "footer.html" }} diff --git a/layouts/index.html b/layouts/index.html index ea792b2..a96c4d6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,22 +1,15 @@ - - {{$.Title}} - - - - - - - - + {{ partial "header.html" }} + {{$.Title}} + {{ partial "nav.html" }} +

ccw.icu

{{.Content}} -
{{ partial "footer.html" }} diff --git a/layouts/sitemap/single.html b/layouts/sitemap/single.html new file mode 100644 index 0000000..b9c62ec --- /dev/null +++ b/layouts/sitemap/single.html @@ -0,0 +1,22 @@ + + + + Sitemap + {{ partial "header.html" }} + +{{ partial "nav.html" }} +
+

Sitemap

+ +
+{{ partial "footer.html" }} -- 2.38.5