From d204c6a77e0b98e3914f86fc993a7afd90ec2510 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Mon, 30 Jan 2023 13:48:46 +0100 Subject: [PATCH] Migrated scripts to use emacs lisp - generators are now using elisp instead of bash - build using: `./build.sh` (running emacs in batch mode) - build outputs are now located in ./build --- README.org | 89 +------------------ build.sh | 2 + el/get-feeds.el | 9 ++ el/get-org-title.el | 10 +++ el/get-posts.el | 12 +++ el/pub.el | 36 ++++++++ feeds/coding/functional-programming.org | 19 ---- feeds/coding/index.org | 26 ------ .../on-vacation-with-my-pinephone.org | 14 --- feeds/index.org | 35 -------- feeds/projects/oomph.org | 10 --- feeds/queertopia/index.org | 29 ------ index.org | 1 - license.org | 1 - pub.el | 31 ------- res/base.css | 29 ++++-- sitemap.org | 20 ----- config.org => src/config.org | 0 .../feeds}/handhelds/formatting-an-ipod.org | 0 {feeds => src/feeds}/handhelds/index.org | 16 ++-- .../using-linux-mobile-for-1-month.org | 0 src/feeds/index.org | 23 +++++ {feeds => src/feeds}/projects/index.org | 15 ++-- .../feeds}/projects/polarplayer-studio.org | 0 src/index.org | 66 ++++++++++++++ src/license.org | 6 ++ 26 files changed, 200 insertions(+), 299 deletions(-) mode change 100644 => 120000 README.org create mode 100755 build.sh create mode 100644 el/get-feeds.el create mode 100644 el/get-org-title.el create mode 100644 el/get-posts.el create mode 100644 el/pub.el delete mode 100644 feeds/coding/functional-programming.org delete mode 100644 feeds/coding/index.org delete mode 100644 feeds/handhelds/on-vacation-with-my-pinephone.org delete mode 100644 feeds/index.org delete mode 100644 feeds/projects/oomph.org delete mode 100644 feeds/queertopia/index.org delete mode 100644 index.org delete mode 100644 license.org delete mode 100644 pub.el delete mode 100644 sitemap.org rename config.org => src/config.org (100%) rename {feeds => src/feeds}/handhelds/formatting-an-ipod.org (100%) rename {feeds => src/feeds}/handhelds/index.org (63%) rename {feeds => src/feeds}/handhelds/using-linux-mobile-for-1-month.org (100%) create mode 100644 src/feeds/index.org rename {feeds => src/feeds}/projects/index.org (66%) rename {feeds => src/feeds}/projects/polarplayer-studio.org (100%) create mode 100644 src/index.org create mode 100644 src/license.org diff --git a/README.org b/README.org deleted file mode 100644 index c1df8b2..0000000 --- a/README.org +++ /dev/null @@ -1,88 +0,0 @@ -#+TITLE: ccw.icu -#+DESCRIPTION: My personal webpage & blog -#+SETUPFILE: ./config.org -#+EXPORT_FILE_NAME: build/index -#+OPTIONS: toc:nil num:nil -#+DATE:<2022-06-17 Fri 13:30> - -* 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 favourite 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 -#+BEGIN_EXPORT html - -#+END_EXPORT -#+begin_src bash :exports results -for dir in $(find ./feeds/ -type d -maxdepth 1 -mindepth 1); do - title="$(echo $dir | sed -e "s/\.\/feeds\///g")" - echo [[file:feeds/$dir/index.org][$title]] -done -#+end_src - -#+RESULTS: -| [[file:feeds/./feeds/projects/index.org][projects]] | -| [[file:feeds/./feeds/handhelds/index.org][handhelds]] | -| [[file:feeds/./feeds/coding/index.org][coding]] | -| [[file:feeds/./feeds/queertopia/index.org][queertopia]] | - -* All posts -#+begin_src bash :exports results -for dir in $(find ./feeds/ -type d -maxdepth 1 -mindepth 1); do - for file in $(find $dir -name '*.org' -type f -maxdepth 1 -mindepth 1); do - category="$(echo $dir | sed -e "s/\.\/feeds\///g")" - post="$(echo $file | sed -e "s/\.\/feeds\/$category\///g")" - stylized="$(echo $post | sed -e "s/.org$//g")" - echo [[file:$dir/index.org][$category]]/[[file:$file][$stylized]] - done -done -#+end_src - -#+RESULTS: -| [[file:./feeds/projects/index.org][projects]]/[[file:./feeds/projects/index.org][index]] | -| [[file:./feeds/projects/index.org][projects]]/[[file:./feeds/projects/polarplayer-studio.org][polarplayer-studio]] | -| [[file:./feeds/projects/index.org][projects]]/[[file:./feeds/projects/oomph.org][oomph]] | -| [[file:./feeds/handhelds/index.org][handhelds]]/[[file:./feeds/handhelds/index.org][index]] | -| [[file:./feeds/handhelds/index.org][handhelds]]/[[file:./feeds/handhelds/using-linux-mobile-for-1-month.org][using-linux-mobile-for-1-month]] | -| [[file:./feeds/handhelds/index.org][handhelds]]/[[file:./feeds/handhelds/on-vacation-with-my-pinephone.org][on-vacation-with-my-pinephone]] | -| [[file:./feeds/handhelds/index.org][handhelds]]/[[file:./feeds/handhelds/formatting-an-ipod.org][formatting-an-ipod]] | -| [[file:./feeds/coding/index.org][coding]]/[[file:./feeds/coding/functional-programming.org][functional-programming]] | -| [[file:./feeds/coding/index.org][coding]]/[[file:./feeds/coding/index.org][index]] | -| [[file:./feeds/queertopia/index.org][queertopia]]/[[file:./feeds/queertopia/index.org][index]] | -| [[file:./feeds/queertopia/index.org][queertopia]]/[[file:./feeds/queertopia/gay-walk.org][gay-walk]] | -| [[file:./feeds/queertopia/index.org][queertopia]]/[[file:./feeds/queertopia/gender-triangle.org][gender-triangle]] | -| [[file:./feeds/queertopia/index.org][queertopia]]/[[file:./feeds/queertopia/gender-inclusivity-in-germany.org][gender-inclusivity-in-germany]] | - -* Social -I occasionally post over on [[https://fosstodon.org/@comcloudway][Mastodon]], -I'm also on [[https://pixelfed.social/comcloudway][Pixelfed]], -but I haven't posted anything in some time. - -Also I'm hosting my own =single-user= [[https://akkoma.dev/][Akkoma]] instance. -Follow me [[https://social.ccw.icu/comcloudway][here]]. - -The following link points to my Mastodon profile as well, -it is used by Mastodon to validate my profile -(=I didn't even have to pay 8USD=) -#+begin_export html -Mastodon -#+end_export diff --git a/README.org b/README.org new file mode 120000 index 0000000..ce08b39 --- /dev/null +++ b/README.org @@ -0,0 +1 @@ +./src/index.org \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..da4d7bd --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +yes yes | emacs --batch -l ./el/pub.el diff --git a/el/get-feeds.el b/el/get-feeds.el new file mode 100644 index 0000000..a1f8b5b --- /dev/null +++ b/el/get-feeds.el @@ -0,0 +1,9 @@ +(setq this (file-name-directory load-file-name)) +(load-file + (format "%s/%s" this "get-org-title.el")) + +(defun extract (path) + (format "[[file:%s/index.org][%s]]" path (get-org-title (format "%s/index.org" path)))) + +(defun get-feeds (path) + (mapcar '(lambda (p) (extract (format "%s/%s" path p))) (directory-files path nil "^[^.]*$"))) diff --git a/el/get-org-title.el b/el/get-org-title.el new file mode 100644 index 0000000..e4c6fe3 --- /dev/null +++ b/el/get-org-title.el @@ -0,0 +1,10 @@ +(defun get-org-title (file) + (let (title) + (when file + (with-temp-buffer + (insert-file-contents file) + (pcase (org-collect-keywords '("TITLE")) + (`(("TITLE" . ,val)) + (setq title (car val))))) + title))) +(provide 'get-org-title) diff --git a/el/get-posts.el b/el/get-posts.el new file mode 100644 index 0000000..d06b3e8 --- /dev/null +++ b/el/get-posts.el @@ -0,0 +1,12 @@ +(setq this (file-name-directory load-file-name)) +(load-file + (format "%s/%s" this "get-org-title.el")) + +(defun extract (path) + (format "[[file:./%s][%s]]" path (get-org-title (format "%s" path)))) + +(require 'seq) +(defun get-posts (path) + (mapcar + '(lambda (p) (extract (format "%s/%s" path p))) + (remove "index.org" (directory-files path nil "[.]org$")))) diff --git a/el/pub.el b/el/pub.el new file mode 100644 index 0000000..92477f4 --- /dev/null +++ b/el/pub.el @@ -0,0 +1,36 @@ +(require 'ox-publish) +;; function run before the website is generated +(defun before (n)) +;; function run after website has been generated +(defun after (n)) + +;; configure the project +(setq org-publish-project-alist + '( + ;; build the blog source + ("src" + :base-directory "./src" + :base-file "index.org" + :recursive t + :publishing-directory "./build" + :auto-sitemap nil + :preparation-function before + :complete-function after) + + ;; bundle the assets + ("res" + :base-directory "./res" + :base-extension "css\\|js\\|png\\|jpg" + :publishing-directory "./build/res" + :recursive t + :publishing-function org-publish-attachment + ) + + ;; combine the individual components into one + ("ccw.icu" :components ("src" "res")) + )) + +;; dynamic build +;; force rebuild if "build" does not exist +;; or updated changed files if build does exist +(org-publish "ccw.icu" (not (file-directory-p "./build/"))) diff --git a/feeds/coding/functional-programming.org b/feeds/coding/functional-programming.org deleted file mode 100644 index 46c7dbb..0000000 --- a/feeds/coding/functional-programming.org +++ /dev/null @@ -1,19 +0,0 @@ -#+TITLE: Let's check out functional programming -#+DESCRIPTION: I've never really understood functional programming. Lets have a look at some languages -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil - - -#+begin_src elisp :exports both -(defun suc (x) (+ x 1)) -(defun add3 (x y z) - (if (= y z) x - (add3 (suc x) y (suc z)))) -(defun add (x y) - (add3 x y 0)) - -(print (add -3 5)) -#+end_src - -#+RESULTS: -: 2 diff --git a/feeds/coding/index.org b/feeds/coding/index.org deleted file mode 100644 index cbd5fa6..0000000 --- a/feeds/coding/index.org +++ /dev/null @@ -1,26 +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 -#+DATE:<2023-01-29 Sun 16:20> - -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 or challanges I try, -that I never finish - -#+BEGIN_SRC bash :exports results -for dir in $(find . -name '*.org' -maxdepth 1 -mindepth 1); do - stext="$(echo $dir | sed -e "s/\.\///g" | sed -e "s/\.org$//g")" - echo [[file:conding/$dir][$stext]] -done -#+END_SRC - -#+RESULTS: -| [[file:conding/./functional-programming.org][functional-programming]] | -| [[file:conding/./index.org][index]] | diff --git a/feeds/handhelds/on-vacation-with-my-pinephone.org b/feeds/handhelds/on-vacation-with-my-pinephone.org deleted file mode 100644 index e747bca..0000000 --- a/feeds/handhelds/on-vacation-with-my-pinephone.org +++ /dev/null @@ -1,14 +0,0 @@ -#+TITLE: Using the pinephone as a laptop replacement -#+DESCRIPTION: I left my laptop at home and took my pinephone instead -#+SETUPFILE: ../../config.org -#+DATE: <2022-11-16 Wed 14:00> - -* What is a pine-phone -Although I doubt that you'd read this without having heard of the pinephone, -let me explain the concept in a couple of sentences: - -* Why? -Looking at the title this might sound like a stupid idea, -but thing about it for a moment: -- apple uses arm processors as well[fn::I know their processors are faster] -- the pinephone is able to run a desktop linux operating system diff --git a/feeds/index.org b/feeds/index.org deleted file mode 100644 index 1f11798..0000000 --- a/feeds/index.org +++ /dev/null @@ -1,35 +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 -#+DATE:<2022-06-17 Fri 13:30> - -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 bash :exports results -for dir in $(find .// -type d -maxdepth 1 -mindepth 1); do - for file in $(find $dir -name '*.org' -type f -maxdepth 1 -mindepth 1); do - category="$(echo $dir | sed -e "s/\.\/\///g")" - post="$(echo $file | sed -e "s/\.\/\/$category\///g")" - stylized="$(echo $post | sed -e "s/.org$//g")" - echo [[file:$dir/index.org][$category]]/[[file:$file][$stylized]] - done -done -#+end_src - -#+RESULTS: -| [[file:.//projects/index.org][projects]]/[[file:.//projects/index.org][index]] | -| [[file:.//projects/index.org][projects]]/[[file:.//projects/polarplayer-studio.org][polarplayer-studio]] | -| [[file:.//projects/index.org][projects]]/[[file:.//projects/oomph.org][oomph]] | -| [[file:.//handhelds/index.org][handhelds]]/[[file:.//handhelds/index.org][index]] | -| [[file:.//handhelds/index.org][handhelds]]/[[file:.//handhelds/using-linux-mobile-for-1-month.org][using-linux-mobile-for-1-month]] | -| [[file:.//handhelds/index.org][handhelds]]/[[file:.//handhelds/on-vacation-with-my-pinephone.org][on-vacation-with-my-pinephone]] | -| [[file:.//handhelds/index.org][handhelds]]/[[file:.//handhelds/formatting-an-ipod.org][formatting-an-ipod]] | -| [[file:.//coding/index.org][coding]]/[[file:.//coding/functional-programming.org][functional-programming]] | -| [[file:.//coding/index.org][coding]]/[[file:.//coding/index.org][index]] | -| [[file:.//queertopia/index.org][queertopia]]/[[file:.//queertopia/index.org][index]] | diff --git a/feeds/projects/oomph.org b/feeds/projects/oomph.org deleted file mode 100644 index ba0539f..0000000 --- a/feeds/projects/oomph.org +++ /dev/null @@ -1,10 +0,0 @@ -#+TITLE: Oomph -#+DESCRIPTION: Introduction Oomph! A mastodon music-genre bot -#+SETUPFILE: ../../config.org -#+DATE:<2022-06-17 Fri 10:30> - -* Why? - -* About - -* Follow Me diff --git a/feeds/queertopia/index.org b/feeds/queertopia/index.org deleted file mode 100644 index 2d71ca0..0000000 --- a/feeds/queertopia/index.org +++ /dev/null @@ -1,29 +0,0 @@ -#+TITLE: Queertopia -#+DESCRIPTION: Im Queer! And how could I not have a blog about queer-ness? -#+SETUPFILE: ../../config.org -#+OPTIONS: toc:nil num:nil -#+DATE:<2023-01-29 Sun 16:20> - -You probably visited my [[../../index.org][homepage]] before, -but did you know that I identify as =trans/nonbinary=? - -*Well now you do.* - -* Welcome to Queertopia -May I say: =Welcome to queertopia=, -the place where I share my queer thoughts, -come up with weird proposals -and maybe I'm even able to teach you something. - -Either way, -it is amazing to have you here. - -#+BEGIN_SRC bash :exports results -for dir in $(find . -name '*.org' -maxdepth 1 -mindepth 1); do - stext="$(echo $dir | sed -e "s/\.\///g" | sed -e "s/\.org$//g")" - echo [[file:conding/$dir][$stext]] -done -#+END_SRC - -#+RESULTS: -: [[file:conding/./index.org][index]] diff --git a/index.org b/index.org deleted file mode 100644 index 0b97d51..0000000 --- a/index.org +++ /dev/null @@ -1 +0,0 @@ -#+INCLUDE: ./README.org diff --git a/license.org b/license.org deleted file mode 100644 index 2401b90..0000000 --- a/license.org +++ /dev/null @@ -1 +0,0 @@ -Content on this website and on the subsites is available under CC BY-SA. diff --git a/pub.el b/pub.el deleted file mode 100644 index 6368b73..0000000 --- a/pub.el +++ /dev/null @@ -1,31 +0,0 @@ -(require 'ox-publish) - -; the assets and build directory pipeline -; creates the build folder (if needed) -; deleted the old asset folder (if needed) -; copies new asset version -(defun assets (n) - (if (not (file-directory-p "./build")) - (make-directory "./build" t)) - (delete-directory "./build/res" t) - (copy-directory "./res" "./build/res")) - -; configure the project -(setq org-publish-project-alist - '( - ("ccw.icu" - :base-directory "." - :base-file "index.org" - :recursive t - :publishing-directory "./build" - :auto-sitemap nil - :sitemap-filename "sitemap.org" - :sitemap-title "Sitemap" - :preparation-function assets - ) - )) - -; dynamic build -; force rebuild if "build" does not exist -; or updated changed files if build does exist -(org-publish "ccw.icu" (not (file-directory-p "./build/"))) diff --git a/res/base.css b/res/base.css index 4f1d033..1453556 100644 --- a/res/base.css +++ b/res/base.css @@ -53,7 +53,8 @@ a:hover { } figure { margin: 0; - padding: 0.4rem + padding: 0.4rem; + max-width: 80%; } img { border-radius: 1rem; @@ -117,13 +118,22 @@ table tr:nth-child(2n) { .org-src-container { border-radius: 8px; - padding-top: 1rem; background: var(--color-base); border: 4px solid var(--color-base); position: relative; overflow: hidden; max-height: 40vh; } +.org-src-container > label { + display: flex; + opacity: 0.8; + font-size: 0.8rem; + justify-content: right; + padding: 0.1rem; +} +.org-src-container > label > .listing-number { + margin-right: 0.2rem +} .src { background: var(--color-box-light); width: calc(100% - 2 * 0.4rem); @@ -131,8 +141,12 @@ table tr:nth-child(2n) { border: none; padding: 0.4rem; margin: 0; + margin-top: 1rem; overflow: auto; } +label ~ .src { + margin-top: 0; +} .example { background: var(--color-box-light); border-radius: 8px; @@ -148,14 +162,13 @@ table tr:nth-child(2n) { left: 0 } -.org-src-container, .example { - transition: box-shadow .4s; +.org-src-container, .example, figure { position: relative !important; overflow: inherit; } -.org-src-container::after,.example::after { +.org-src-container::after,.example::after, figure::after { --offset: 0.4rem; content: ''; @@ -177,7 +190,11 @@ table tr:nth-child(2n) { .example::after { --offset: 0.2rem; } -.org-src-container:hover::after,.example:hover::after { +figure::after { + --offset: 0.1rem; + border-radius: 1rem; +} +.org-src-container:hover::after,.example:hover::after, figure:hover::after { opacity: 0.8; animation: trans-rotate 10s both 0s linear infinite; } diff --git a/sitemap.org b/sitemap.org deleted file mode 100644 index ffaadc0..0000000 --- a/sitemap.org +++ /dev/null @@ -1,20 +0,0 @@ -#+TITLE: Sitemap - -- [[file:README.org][Jakob Meier]] -- [[file:config.org][config]] -- [[file:index.org][index]] -- [[file:license.org][license]] -- feeds - - [[file:feeds/index.org][Blog Posts]] - - announcements - - [[file:feeds/announcements/index.org][Announcements]] - - coding - - [[file:feeds/coding/functional-programming.org][Let's check out functional programming]] - - handhelds - - [[file:feeds/handhelds/index.org][Smartphone related posts]] - - [[file:feeds/handhelds/using-linux-mobile-for-1-month.org][Using Linux on my phone for 1 month]] - - [[file:feeds/handhelds/on-vacation-with-my-pinephone.org][Using the pinephone as a laptop replacement]] - - [[file:feeds/handhelds/formatting-an-ipod.org][iPod USB Key and going back to normal]] - - projects - - [[file:feeds/projects/polarplayer-studio.org][PolarPlayer-Studio]] - - [[file:feeds/projects/index.org][Projects]] \ No newline at end of file diff --git a/config.org b/src/config.org similarity index 100% rename from config.org rename to src/config.org diff --git a/feeds/handhelds/formatting-an-ipod.org b/src/feeds/handhelds/formatting-an-ipod.org similarity index 100% rename from feeds/handhelds/formatting-an-ipod.org rename to src/feeds/handhelds/formatting-an-ipod.org diff --git a/feeds/handhelds/index.org b/src/feeds/handhelds/index.org similarity index 63% rename from feeds/handhelds/index.org rename to src/feeds/handhelds/index.org index ffa1d35..02a2751 100644 --- a/feeds/handhelds/index.org +++ b/src/feeds/handhelds/index.org @@ -26,15 +26,11 @@ 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 bash :exports results -for dir in $(find . -name '*.org' -maxdepth 1 -mindepth 1); do - stext="$(echo $dir | sed -e "s/\.\///g" | sed -e "s/\.org$//g")" - echo [[file:phones/$dir][$stext]] -done -#+END_SRC +#+begin_src elisp :exports results :results value list +(load-file "../../../el/get-posts.el") +(get-posts "../../feeds/handhelds") +#+end_src #+RESULTS: -| [[file:phones/./index.org][index]] | -| [[file:phones/./using-linux-mobile-for-1-month.org][using-linux-mobile-for-1-month]] | -| [[file:phones/./on-vacation-with-my-pinephone.org][on-vacation-with-my-pinephone]] | -| [[file:phones/./formatting-an-ipod.org][formatting-an-ipod]] | +- [[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]] diff --git a/feeds/handhelds/using-linux-mobile-for-1-month.org b/src/feeds/handhelds/using-linux-mobile-for-1-month.org similarity index 100% rename from feeds/handhelds/using-linux-mobile-for-1-month.org rename to src/feeds/handhelds/using-linux-mobile-for-1-month.org diff --git a/src/feeds/index.org b/src/feeds/index.org new file mode 100644 index 0000000..711720c --- /dev/null +++ b/src/feeds/index.org @@ -0,0 +1,23 @@ +#+TITLE: Blog Posts +#+DESCRIPTION: Index page with all of my blog entries listed by category +#+SETUPFILE: ../config.org +#+OPTIONS: toc:nil num:nil +#+DATE:<2022-06-17 Fri 13:30> + +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:.//handhelds/index.org][Smartphone related posts]] +- [[file:.//projects/index.org][Projects]] +- [[file:.//queertopia/index.org][Welcome to Queertopia]] diff --git a/feeds/projects/index.org b/src/feeds/projects/index.org similarity index 66% rename from feeds/projects/index.org rename to src/feeds/projects/index.org index e1f3149..d4d82cf 100644 --- a/feeds/projects/index.org +++ b/src/feeds/projects/index.org @@ -20,14 +20,11 @@ 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 bash :exports results -for dir in $(find . -name '*.org' -maxdepth 1 -mindepth 1); do - stext="$(echo $dir | sed -e "s/\.\///g" | sed -e "s/\.org$//g")" - echo [[file:projects/$dir][$stext]] -done -#+END_SRC +#+begin_src elisp :exports results :results value list +(load-file "../../../el/get-posts.el") +(get-posts "../../feeds/projects") +#+end_src #+RESULTS: -| [[file:projects/./index.org][index]] | -| [[file:projects/./polarplayer-studio.org][polarplayer-studio]] | -| [[file:projects/./oomph.org][oomph]] | +- [[file:./../../feeds/projects/oomph.org][Oomph]] +- [[file:./../../feeds/projects/polarplayer-studio.org][PolarPlayer-Studio]] diff --git a/feeds/projects/polarplayer-studio.org b/src/feeds/projects/polarplayer-studio.org similarity index 100% rename from feeds/projects/polarplayer-studio.org rename to src/feeds/projects/polarplayer-studio.org diff --git a/src/index.org b/src/index.org new file mode 100644 index 0000000..6f9ce14 --- /dev/null +++ b/src/index.org @@ -0,0 +1,66 @@ +#+TITLE: ccw.icu +#+DESCRIPTION: My personal webpage & blog +#+SETUPFILE: ./config.org +#+EXPORT_FILE_NAME: build/index +#+OPTIONS: toc:nil num:nil +#+DATE:<2022-06-17 Fri 13:30> + +* 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 favourite 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 interestign to you + + +#+begin_src elisp :exports results :results value list +(load-file "../el/get-feeds.el") +(get-feeds "./feeds") +#+end_src + +#+RESULTS: +- [[file:../src/feeds/coding/index.org][Coding]] +- [[file:../src/feeds/handhelds/index.org][Smartphone related posts]] +- [[file:../src/feeds/projects/index.org][Projects]] +- [[file:../src/feeds/queertopia/index.org][Welcome to Queertopia]] + +* Social +I occasionally post over on [[https://fosstodon.org/@comcloudway][Mastodon]], +I'm also on [[https://pixelfed.social/comcloudway][Pixelfed]], +but I haven't posted anything in some time. + +Also I'm hosting my own =single-user= [[https://akkoma.dev/][Akkoma]] instance. +Follow me [[https://social.ccw.icu/comcloudway][here]]. + +The following link points to my Mastodon profile as well, +it is used by Mastodon to validate my profile +(=I didn't even have to pay 8USD=) +#+begin_export html +Mastodon +#+end_export diff --git a/src/license.org b/src/license.org new file mode 100644 index 0000000..72e0f3f --- /dev/null +++ b/src/license.org @@ -0,0 +1,6 @@ +All written content on this website +and on the sub-sites is available under CC BY-SA, +unless stated otherwise. + +For source-code you have to consult the project license, +if specified. -- 2.38.5