site

My personal website.

Date: Tue, 13 Jul 2021 16:14:26 +0200

Put repositories on separate page

Diffstat:

M generate                            |      11 ++++++++---
M index.gmi                           |      48 +++++++------------------------
A repositories.gmi                    |      37 +++++++++++++++++++++++++++++++

3 files changed, 55 insertions(+), 41 deletions(-)

@@ -43,12 +43,13 @@ function wrap(text,   q, y, z) {
         list = 0;
     }
     url = $1;
-    text = $2;
-    if (text == "")
-        text = url;
     $1 = "";
     sub(/^ /, "", $0);
+    text = $0;
+    if (text == "")
+        text = url;
     if (html) {
+        sub(/\.gmi$/, "", url);
         print "<p><a href=\"" url "\">" $0 "</a></p>";
     } else {
         split(url, segments, "/");
@@ -73,6 +74,7 @@ function wrap(text,   q, y, z) {
             host = "milotier.net";
             itemtype = "1";
             path = url;
+            sub(/\.gmi$/, "", path);
             port = "70";
         } else if (match(url, /(\.jpg|\.jpeg|\.png)$/)) {
             host = "milotier.net";
@@ -111,6 +113,7 @@ preformatted {
         list = 0;
     }
     $1 = "";
+    sub(/^ /, "");
     if (html)
         print "<h1>" $0 "</h1>";
     else
@@ -123,6 +126,7 @@ preformatted {
         list = 0;
     }
     $1 = "";
+    sub(/^ /, "");
     if (html)
         print "<h2>" $0 "</h2>";
     else
@@ -135,6 +139,7 @@ preformatted {
         list = 0;
     }
     $1 = "";
+    sub(/^ /, "");
     if (html)
         print "<h3>" $0 "</h3>";
     else
@@ -2,49 +2,21 @@
 
 ## Introduction
 
-I'm interested in computers, computer science and recently Linux. On this site I post anything related to this.
+I'm interested in computers, computer science and recently GNU/Linux and free software. On this site I post anything related to this.
 
-My site on different protocols:
-=> gopher://milotier.net Gopher
-=> gemini://milotier.net Gemini
-=> https://milotier.net Web
+This site is available on three different internet protocols:
+=> gopher://milotier.net Gopher version
+=> https://en.wikipedia.org/wiki/Gopher_(protocol) Info on Gopher
 
-## Git repositories
+=> gemini://milotier.net Gemini version
+=> https://gemini.circumlunal.space Info on Gemini
 
-I host my own git server, which you can access by running:
-```
-git clone https://git.milotier.net/<repository name>
-```
+=> https://milotier.net Web version
 
-=> https://git.milotier.net/site site
-The full source of this site, licensed under the Creative Commons Attribution Share-Alike 4.0 license.
+## Links
 
-=> https://git.milotier.net/dotfiles dotfiles
-The dotfiles I use in my installation of Artix Linux. This includes both configuration files and custom shell scripts.
-
-=> https://git.milotier.net/dwm dwm
-=> https://dwm.suckless.org Info
-My custom build of dwm. All of the changes are in the branch "custom", and master is the same as the upstream.
-
-=> https://git.milotier.net/dmenu dmenu
-=> https://tools.suckless.org/dmenu Info
-My custom build of dmenu. The branches are the same as in my other suckless builds.
-
-=> https://git.milotier.net/st st
-=> https://st.suckless.org Info
-My custom build of st. The branches are the same as in my other suckless builds.
-
-=> https://git.milotier.net/slock slock
-=> https://tools.suckless.org/slock Info
-My custom build of slock. The branches are the same as in my other suckless builds.
-
-=> https://git.milotier.net/surf surf
-=> https://surf.suckless.org Info
-My custom build of surf. My changes are in the branch "custom", while the master branch is called surf-webkit2.
-
-=> https://git.milotier.net/sxiv sxiv
-=> https://github.com/muennich/sxiv Info
-My custom build of sxiv. The branches are the same as in my suckless builds.
+Here are some useful links:
+=> /repositories My git repositories
 
 ## Contact
 
@@ -0,0 +1,37 @@
+# Git repositories
+
+I host my own git server, which you can access by running:
+```
+git clone https://git.milotier.net/<repository name>
+```
+You can also view my repositories in your browser (currently web only) by using the same link.
+
+=> https://git.milotier.net/site site
+The full source of this site, licensed under the Creative Commons Attribution Share-Alike 4.0 license.
+
+=> https://git.milotier.net/dotfiles dotfiles
+The dotfiles I use in my installation of Artix Linux. This includes both configuration files and custom shell scripts.
+
+=> https://git.milotier.net/dwm dwm
+=> https://dwm.suckless.org Info
+My custom build of dwm. All of the changes are in the branch "custom", and master is the same as the upstream.
+
+=> https://git.milotier.net/dmenu dmenu
+=> https://tools.suckless.org/dmenu Info
+My custom build of dmenu. The branches are the same as in my other suckless builds.
+
+=> https://git.milotier.net/st st
+=> https://st.suckless.org Info
+My custom build of st. The branches are the same as in my other suckless builds.
+
+=> https://git.milotier.net/slock slock
+=> https://tools.suckless.org/slock Info
+My custom build of slock. The branches are the same as in my other suckless builds.
+
+=> https://git.milotier.net/surf surf
+=> https://surf.suckless.org Info
+My custom build of surf. My changes are in the branch "custom", while the master branch is called surf-webkit2.
+
+=> https://git.milotier.net/sxiv sxiv
+=> https://github.com/muennich/sxiv Info
+My custom build of sxiv. The branches are the same as in my other suckless builds.