add footer feature in gmirator for gemtext files

This commit is contained in:
stev 2023-02-27 12:30:17 +01:00
parent df4ecbbea2
commit c7332459b9
16 changed files with 194 additions and 138 deletions

View file

@ -7,3 +7,8 @@ I discovered that back in 2018 I tried to prevent MS from spying on me by disabl
All this was so I could play Minecraft with my SO. I had not played Minecraft in many years, Mojang had not been bought by MS last time I played. I was so angry when I learnt about the bedrock edition and that I had to buy it even though I already had the java edition (I don't intend to play the bedrock edition but the fact that you have to pay twice to have both is infuriating to me). The worst part is that by the end of the year if I want to continue playing I have to use a MS account with Minecraft instead of my Mojang account and that also pisses my off very much.
Unfortunately these are not the only reasons I hate MS, they were just new reasons that added to the others.
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

View file

@ -1,3 +1,8 @@
# I'm learning networking
I'm currently learning networking stuff to become a sysadmin on my own waiting for the formation to start. I'm looking at a free Coursera course and videos on Youtube and I'm having a blast learning all this but it makes me want to buy all kind of things that would be way overkill both for my wallet and for my home network...
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

View file

@ -20,5 +20,10 @@ there's a list of ideas:
## logs
=> gemlog/2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking
=> gemlog/2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft
=> /gemlog/2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking
=> /gemlog/2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

View file

@ -6,8 +6,6 @@ Est. 17th of February 2021.
# stevengibone.com
=> gibone-CV.pdf my resume (in french)
=> mailto:steven.gibone@zaclys.net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon
Hello, my name is Steven Gibone and welcome to my gemini capsule. I used to study mathematics but quit due to me realizing I don't want to teach to an entire class. The public education system is far too broken for me and I really cannot accept to work in these conditions.
@ -31,39 +29,29 @@ And sportswise:
* rock climbing (mostly bouldering in Arkose)
* rollerblading
## finished projects
### 2021
* built my website using PicoCMS
* installed Pi-Hole on my Raspberry Pi
* installed Gogs on my Raspberry Pi now with remote access
* bought a domain name for my website.
* migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address.
* installed agate to serve this gemini capsule :)
* migrate website from PicoCMS to 11ty
### 2022
* multiple things of which I didn't keep records
* a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough.
* tried *gitolite* and *cgit* replacement of *Gitea*
* settle to *Onedev*
### 2023
* resuscitate my gemini capsule again after reading an article by Ploum
=> gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi
=> projects.gmi my differents projects
## what I'm reading
* ~~The Lord of the Rings: The Two Towers, J.R.R. Tolkien~~
* ~~Clit Révolution, Sarah Constantin & Elvire Duvelle-Charles~~
* En Travail, Bernard Friot et Frédéric Lordon
* Sortir de l'hétérosexualité, Juliet Drouart
* ~~Sortir de l'hétérosexualité, Juliet Drouart~~
* Beaufs et Barbares, Houria Bouteldja
## what I'm playing
* Skul: The Hero Slayer
* Bloodstained: Ritual of the Night
* Hades
* PokeMon: Shining Pearl
* Pokemon: Shining Pearl
## logs
=> tinylog.gmi tinylogs go here
=> gemlog/index.gmi full gemlogs here
=> gemlog/2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking
=> gemlog/2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft
=> /gemlog/2021-05-04_networking_school.gmi 2021-05-04 - I'm learning networking
=> /gemlog/2021-05-01_windowssucks.gmi 2021-05-01 - I hate Microsoft
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

24
content/projects.gmi Normal file
View file

@ -0,0 +1,24 @@
# Current or finished projects
sorted in reverse chronological order so that the most recent projects appears first:
## 2023
* resuscitate my gemini capsule again after reading an article by Ploum
=> gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi
## 2022
* settle to *Onedev*
* tried *gitolite* and *cgit* replacement of *Gitea*
* a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough.
* multiple things of which I didn't keep records
## 2021
* migrate website from PicoCMS to 11ty
* installed agate to serve this gemini capsule :)
* migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address.
* bought a domain name for my website.
* installed Gogs on my Raspberry Pi now with remote access
* installed Pi-Hole on my Raspberry Pi
* built my website using PicoCMS
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

View file

@ -1 +1,5 @@
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

5
footer.gmi Normal file
View file

@ -0,0 +1,5 @@
---
=> /index.gmi
contact me by mail: steven.gibone at zaclys dot net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon

View file

@ -14,8 +14,9 @@ make_gemlogs_index() {
| while read fname; do
local date=$(echo "$fname" | sed "s/_.*//")
local title=$(head -1 $LGMI/gemlog/$fname | sed "s/# //")
echo "=> gemlog/$fname $date - $title" >> $WORKDIR/articles.gmi.temp
echo "=> /gemlog/$fname $date - $title" >> $WORKDIR/articles.gmi.temp
done
head $WORKDIR/articles.gmi.temp > $WORKDIR/head-articles.gmi.temp
echo "generating gemlog/index.gmi"
sed -i -e "/^## logs/,//{
@ -26,24 +27,43 @@ make_gemlogs_index() {
}" $LGMI/gemlog/index.gmi
echo "generating index.gmi"
printf '
=> tinylog.gmi tinylogs go here
=> gemlog/index.gmi full gemlogs here
\n%s' "$(head $WORKDIR/articles.gmi.temp)" \
| cat $WORKDIR/in.gmi - > $LGMI/index.gmi
echo "" >> $LGMI/index.gmi
sed -i -e "/^## logs/,//{
/^#/!d
}" -e "/^## logs/{
a => tinylog.gmi tinylogs go here
a => gemlog/index.gmi full gemlogs here
a
r $WORKDIR/head-articles.gmi.temp
a
}" $LGMI/index.gmi
echo "generate footer for every .gmi"
while read -r file; do
sed -i -e "/^---/,//{
d
}" $file
cat $WORKDIR/footer.gmi >> $file
done < <(find $LGMI -type f -name \*.gmi)
echo "DONE :)"
}
inline_parsing() {
sed -E 's|\*([^\*]+)\*|<em>\1</em>|g' |
sed -E 's|~~(.*)~~|<s>\1</s>|g'
}
gmi2html() {
local in_list=no
local in_preformated=no
while read -r line; do
if [[ $line == "---" ]]; then
break
fi
if [[ "$in_list" == yes ]]; then
if [[ "$line" == '* '* ]]; then
printf "<li>%s</li>\n" "${line/\* /}"
printf "<li>%s</li>\n" "${line/\* /}" | inline_parsing
continue
else
in_list=no
@ -64,7 +84,7 @@ gmi2html() {
;;
'* '*)
in_list=yes
printf "<ul>\n<li>%s</li>\n" "${line/\* }"
printf "<ul>\n<li>%s</li>\n" "${line/\* }" | inline_parsing
;;
'# '*)
printf "<h1>%s</h1>\n" "$line"
@ -86,7 +106,7 @@ gmi2html() {
printf "<pre>\n"
;;
*)
printf "<p>%s</p>\n" "$line"
printf "<p>%s</p>\n" "$line" | inline_parsing
;;
esac
done

View file

@ -17,4 +17,11 @@
<p>All this was so I could play Minecraft with my SO. I had not played Minecraft in many years, Mojang had not been bought by MS last time I played. I was so angry when I learnt about the bedrock edition and that I had to buy it even though I already had the java edition (I don't intend to play the bedrock edition but the fact that you have to pay twice to have both is infuriating to me). The worst part is that by the end of the year if I want to continue playing I have to use a MS account with Minecraft instead of my Mojang account and that also pisses my off very much.</p>
<p>Unfortunately these are not the only reasons I hate MS, they were just new reasons that added to the others.</p>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

View file

@ -13,4 +13,11 @@
<h1># I'm learning networking</h1>
<p>I'm currently learning networking stuff to become a sysadmin on my own waiting for the formation to start. I'm looking at a free Coursera course and videos on Youtube and I'm having a blast learning all this but it makes me want to buy all kind of things that would be way overkill both for my wallet and for my home network...</p>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

View file

@ -34,7 +34,14 @@
<li>universal wage (salaire à vie in french), which is not UBI</li>
</ul>
<h2>## logs</h2>
<a href="gemlog/2021-05-04_networking_school.html">=> 2021-05-04 - I'm learning networking</a><br>
<a href="gemlog/2021-05-01_windowssucks.html">=> 2021-05-01 - I hate Microsoft</a><br>
<a href="/gemlog/2021-05-04_networking_school.html">=> 2021-05-04 - I'm learning networking</a><br>
<a href="/gemlog/2021-05-01_windowssucks.html">=> 2021-05-01 - I hate Microsoft</a><br>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

View file

@ -17,13 +17,11 @@ Est. 17th of February 2021.
</pre>
<h1># stevengibone.com</h1>
<a href="gibone-CV.pdf">=> my resume (in french)</a><br>
<a href="mailto:steven.gibone@zaclys.net">=> mailto:steven.gibone@zaclys.net</a><br>
<a href="https://mastodon.zaclys.com/@lonion">=> @lonion@mastodon.zaclys.com on mastodon</a><br>
<p>Hello, my name is Steven Gibone and welcome to my gemini capsule. I used to study mathematics but quit due to me realizing I don't want to teach to an entire class. The public education system is far too broken for me and I really cannot accept to work in these conditions.</p>
<p>I have both a *website* and a *gemini capsule*:</p>
<p>I have both a <em>website</em> and a <em>gemini capsule</em>:</p>
<a href="gemini://stevengibone.com">=> gemini://stevengibone.com</a><br>
<a href="https://stevengibone.com">=> https://stevengibone.com</a><br>
<p>If you don't know about the *gemini* protocol and care about a more simple internet, I strongly encourage you to learn more about it:</p>
<p>If you don't know about the <em>gemini</em> protocol and care about a more simple internet, I strongly encourage you to learn more about it:</p>
<a href="https://gemini.circumlunar.space/">=> https://gemini.circumlunar.space/</a><br>
<p>I take interest in:</p>
<ul>
@ -41,46 +39,32 @@ Est. 17th of February 2021.
<li>rock climbing (mostly bouldering in Arkose)</li>
<li>rollerblading</li>
</ul>
<h2>## finished projects</h2>
<h3>### 2021</h3>
<ul>
<li>built my website using PicoCMS</li>
<li>installed Pi-Hole on my Raspberry Pi</li>
<li>installed Gogs on my Raspberry Pi now with remote access</li>
<li>bought a domain name for my website.</li>
<li>migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address.</li>
<li>installed agate to serve this gemini capsule :)</li>
<li>migrate website from PicoCMS to 11ty</li>
</ul>
<h3>### 2022</h3>
<ul>
<li>multiple things of which I didn't keep records</li>
<li>a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough.</li>
<li>tried *gitolite* and *cgit* replacement of *Gitea*</li>
<li>settle to *Onedev*</li>
</ul>
<h3>### 2023</h3>
<ul>
<li>resuscitate my gemini capsule again after reading an article by Ploum</li>
</ul>
<a href="gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.html">=> gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi</a><br>
<a href="projects.html">=> my differents projects</a><br>
<h2>## what I'm reading</h2>
<ul>
<li>~~The Lord of the Rings: The Two Towers, J.R.R. Tolkien~~</li>
<li>~~Clit Révolution, Sarah Constantin & Elvire Duvelle-Charles~~</li>
<li><s>The Lord of the Rings: The Two Towers, J.R.R. Tolkien</s></li>
<li><s>Clit Révolution, Sarah Constantin & Elvire Duvelle-Charles</s></li>
<li>En Travail, Bernard Friot et Frédéric Lordon</li>
<li>Sortir de l'hétérosexualité, Juliet Drouart</li>
<li><s>Sortir de l'hétérosexualité, Juliet Drouart</s></li>
<li>Beaufs et Barbares, Houria Bouteldja</li>
</ul>
<h2>## what I'm playing</h2>
<ul>
<li>Skul: The Hero Slayer</li>
<li>Bloodstained: Ritual of the Night</li>
<li>Hades</li>
<li>PokeMon: Shining Pearl</li>
<li>Pokemon: Shining Pearl</li>
</ul>
<h2>## logs</h2>
<a href="tinylog.html">=> tinylogs go here</a><br>
<a href="gemlog/index.html">=> full gemlogs here</a><br>
<a href="gemlog/2021-05-04_networking_school.html">=> 2021-05-04 - I'm learning networking</a><br>
<a href="gemlog/2021-05-01_windowssucks.html">=> 2021-05-01 - I hate Microsoft</a><br>
<a href="/gemlog/2021-05-04_networking_school.html">=> 2021-05-04 - I'm learning networking</a><br>
<a href="/gemlog/2021-05-01_windowssucks.html">=> 2021-05-01 - I hate Microsoft</a><br>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

45
html-output/projects.html Normal file
View file

@ -0,0 +1,45 @@
<!DOCTYPE HTML>
<html>
<head>
<title>stevengibone.com</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/style.css" type="text/css">
</head>
<body>
<h1># Current or finished projects</h1>
<p>sorted in reverse chronological order so that the most recent projects appears first:</p>
<h2>## 2023</h2>
<ul>
<li>resuscitate my gemini capsule again after reading an article by Ploum</li>
</ul>
<a href="gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.html">=> gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi</a><br>
<h2>## 2022</h2>
<ul>
<li>settle to <em>Onedev</em></li>
<li>tried <em>gitolite</em> and <em>cgit</em> replacement of <em>Gitea</em></li>
<li>a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough.</li>
<li>multiple things of which I didn't keep records</li>
</ul>
<h2>## 2021</h2>
<ul>
<li>migrate website from PicoCMS to 11ty</li>
<li>installed agate to serve this gemini capsule :)</li>
<li>migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address.</li>
<li>bought a domain name for my website.</li>
<li>installed Gogs on my Raspberry Pi now with remote access</li>
<li>installed Pi-Hole on my Raspberry Pi</li>
<li>built my website using PicoCMS</li>
</ul>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

View file

@ -10,6 +10,12 @@
</head>
<body>
<p>---</p>
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

View file

@ -1,2 +1,9 @@
</body>
<footer>
<hr>
<ul>
<li>Mail me: steven.gibone <at> zaclys (dot) net</li>
<li><a href="https://mastodon.zaclys.com/@lonion">My mastodon profile<a></li>
</ul>
</footer>
</html>

63
in.gmi
View file

@ -1,63 +0,0 @@
``` ascii art showing my name: Steven Gibone.
▄▀▀ ▄▀ █ ██▄ ▄▀▄ █▄ █ ██▀
▄██ ▄ ▀▄█ █ █▄█ ▀▄▀ █ ▀█ █▄▄
Est. 17th of February 2021.
```
# stevengibone.com
=> gibone-CV.pdf my resume (in french)
=> mailto:steven.gibone@zaclys.net
=> https://mastodon.zaclys.com/@lonion @lonion@mastodon.zaclys.com on mastodon
Hello, my name is Steven Gibone and welcome to my gemini capsule. I used to study mathematics but quit due to me realizing I don't want to teach to an entire class. The public education system is far too broken for me and I really cannot accept to work in these conditions.
I have both a *website* and a *gemini capsule*:
=> gemini://stevengibone.com
=> https://stevengibone.com
If you don't know about the *gemini* protocol and care about a more simple internet, I strongly encourage you to learn more about it:
=> https://gemini.circumlunar.space/
I take interest in:
* coffee, I love coffee
* free/libre software
* maker/hacker culture
* mathematics
* philosophy
* politics
* video games
And sportswise:
* fencing (I'm not a fencer anymore but really loved it)
* rock climbing (mostly bouldering in Arkose)
* rollerblading
## finished projects
### 2021
* built my website using PicoCMS
* installed Pi-Hole on my Raspberry Pi
* installed Gogs on my Raspberry Pi now with remote access
* bought a domain name for my website.
* migrated from Gogs to Gitea because it was easy and Gitea has a mobile UI contrary to Gogs. Lives at the same address.
* installed agate to serve this gemini capsule :)
* migrate website from PicoCMS to 11ty
### 2022
* multiple things of which I didn't keep records
* a lot of testing of different minecraft servers and frontend to manage them. I finaly dicided to keep it simple by using cronjobs and tmux. I found that web dashboards are to cumbersome and not flexible enough.
* tried *gitolite* and *cgit* replacement of *Gitea*
* settle to *Onedev*
### 2023
* resuscitate my gemini capsule again after reading an article by Ploum
=> gemini://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.gmi
## what I'm reading
* ~~The Lord of the Rings: The Two Towers, J.R.R. Tolkien~~
* ~~Clit Révolution, Sarah Constantin & Elvire Duvelle-Charles~~
* En Travail, Bernard Friot et Frédéric Lordon
* Sortir de l'hétérosexualité, Juliet Drouart
## what I'm playing
* Skul: The Hero Slayer
* Hades
* PokeMon: Shining Pearl
## logs