Commit Diff


commit - af14d2fbcdd245631c3107c3a3f4ea9fb47a99aa
commit + 5e1689d185a66cb2dc3b5d70495ba0672ff7f1ea
blob - 07117ff7aebbea659d13a4c7d8c7ad1807fd66f4 (mode 644)
blob + /dev/null
--- index.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-	<meta charset="utf-8">
-	<meta name="robots" content="noindex, nofollow, noarchive, nosnippet">
-	<title>plain_text_</title>
-	<style type="text/css">
-		:root { color-scheme: light dark; }
-		body { font-family: monospace; }
-	</style>
-</head>
-
-<body>
-<pre>
-<strong>PLAIN_TEXT_</strong>
-rap lyrics, turntablism, heavy electronics.
-
-<strong>99 / sandbox</strong>
-unestructured tests and experiments.
-
-	2024-05-11 / Freestyle Session
-	             <a href="https://odysee.com/@thiagoalessio:6/2024-05-11-freestyle-session:1">video</a>
-
-	2024-10-21 / PR055164 (Konnyes - Prossiga Remix)
-	             <a href="https://audius.co/thiagoalessio/pr055164-konnyes-prossiga-remix">audio</a> <a href="https://odysee.com/@thiagoalessio:6/2024-10-21-PR055164-konnyes-prossiga-remix:3">video</a>
-
-	2025-10-17 / Freestyle Session
-	             <a href="https://odysee.com/@thiagoalessio:6/2025-10-17-freestyle-session:a">video</a>
-
-	2026-03-13 / Intro of Linkin Park - Don't Stay
-	             <a href="https://odysee.com/@thiagoalessio:6/2026-03-13-intro-of-linkin-park-dont-stay:c">video</a>
-
----
-<a href="mailto:txt@thiagoalessio.com">txt@thiagoalessio.com</a>
-<a href="https://git.thiagoalessio.com/?action=blob&commit={{ HEAD }}&file=publickey.asc&folder=&path=txt">8E73 6FAE AD73 2D76 1C38 9FB9 102A 512D 8394 45B4</a>
-
-<a href="https://audius.co/thiagoalessio">https://audius.co/thiagoalessio</a>
-<a href="https://odysee.com/@thiagoalessio:6">https://odysee.com/@thiagoalessio:6</a>
-<a href="https://soundcloud.com/plain_text_txt">https://soundcloud.com/plain_text_txt</a>
-<a href="https://www.youtube.com/@plain_text_txt">https://www.youtube.com/@plain_text_txt</a>
-<a href="https://www.instagram.com/plain_text_txt">https://www.instagram.com/plain_text_txt</a>
-</pre>
-</body>
-</html>
blob - /dev/null
blob + 9d33d61ab7a73fa0ca2648274ff3aad2d3387437 (mode 644)
--- /dev/null
+++ index.gmi
@@ -0,0 +1,33 @@
+# PLAIN_TEXT_
+
+rap lyrics, turntablism, heavy electronics.
+
+## 99 / sandbox
+
+unestructured tests and experiments.
+
+* 2024-05-11 / Freestyle Session
+=> https://odysee.com/@thiagoalessio:6/2024-05-11-freestyle-session:1 video
+
+* 2024-10-21 / PR055164 (Konnyes - Prossiga Remix)
+=> https://audius.co/thiagoalessio/pr055164-konnyes-prossiga-remix audio
+=> https://odysee.com/@thiagoalessio:6/2024-10-21-PR055164-konnyes-prossiga-remix:3 video
+
+* 2025-10-17 / Freestyle Session
+=> https://odysee.com/@thiagoalessio:6/2025-10-17-freestyle-session:a video
+
+* 2026-03-13 / Intro of Linkin Park - Don't Stay
+=> https://odysee.com/@thiagoalessio:6/2026-03-13-intro-of-linkin-park-dont-stay:c video
+
+## links
+
+=> mailto:txt@thiagoalessio.com txt@thiagoalessio.com
+=> https://git.thiagoalessio.com/?action=blob&commit={{COMMIT}}&file=publickey.asc&folder=&path=txt 8E73 6FAE AD73 2D76 1C38 9FB9 102A 512D 8394 45B4
+
+=> gemini://txt.thiagoalessio.com gemini
+
+=> https://audius.co/thiagoalessio audius
+=> https://odysee.com/@thiagoalessio:6 odysee
+=> https://soundcloud.com/plain_text_txt soundcloud
+=> https://www.youtube.com/@plain_text_txt youtube
+=> https://www.instagram.com/plain_text_txt instagram
blob - 5bc801a2078c4ea679c1f683c31c4e2036a68a81
blob + 828a8c18fc09a51702bf8b20f2e79d491011086a
--- tools/deploy.sh
+++ tools/deploy.sh
@@ -1,8 +1,30 @@
 #!/bin/sh
+get() { git --git-dir="$repo" show $commit:$1; }
 
-repo=$1 ; commit=$2 ; dest=$3
+# gmi
+get robots.txt > "$gmi_dest/robots.gmi"
+get index.gmi | sed "s/{{COMMIT}}/$commit/g" > "$gmi_dest/index.gmi"
 
-git --git-dir="$repo" show $commit:index.html |\
-	sed "s/{{ HEAD }}/$commit/g" > "$dest/index.html"
+# html
+cp "$gmi_dest/robots.gmi" "$html_dest/robots.txt"
+cat << EOF > "$html_dest/index.html"
+<!doctype html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<meta name="robots" content="noindex, nofollow, noarchive, nosnippet">
+	<title>plain_text_</title>
+	<style type="text/css">
+		:root { color-scheme: light dark; }
+		body { font-family: monospace; }
+	</style>
+</head>
+<body>
+<pre>
 
-git --git-dir="$repo" show $commit:robots.txt > "$dest/robots.txt"
+$(get tools/gmi2html.awk | awk -f - "$gmi_dest/index.gmi")
+
+</pre>
+</body>
+</html>
+EOF
blob - /dev/null
blob + afbbe0d7b031f6bc228fbc57dba4be93956bd48f (mode 755)
--- /dev/null
+++ tools/gmi2html.awk
@@ -0,0 +1,26 @@
+#!/usr/bin/awk -f
+
+/^##? / {
+	print "<strong>" substr($0, index($0, " ") + 1) "</strong>"
+	next
+}
+
+/^\* / {
+	print "\t" substr($0, 3)
+	next
+}
+
+/^=> / {
+	line = substr($0, 4)
+	match(line, /[ ]+/)
+
+	url   = substr(line, 1, RSTART - 1)
+	label = substr(line, RSTART + RLENGTH)
+
+	print "\t<a href=\"" url "\">" label "</a>"
+	next
+}
+
+{
+	print $0
+}