commit 4db60aa
chld
·
2026-04-25 00:33:10 +0000 UTC
parent 0e9d486
update
2 files changed,
+6,
-3
M
srv.go
+5,
-2
1@@ -1,3 +1,6 @@
2-<h1>hello everyone</h1>
3+<h1>intelligently stupid</h1><sub>i hate you</sub>
4 <p>this is chlds website<br>
5-im some gu who likes to program and draw</p>
6+proudly served by some busted <a href=https://codeberg.org/chld/web>go backend</a><br>
7+im some guy who likes to program, draw and write</p>
8+
9+
M
srv.go
+1,
-1
1@@ -20,7 +20,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
2 fmt.Fprintf(w, "<html><body><center>\n")
3 fmt.Fprintf(w, "<p>%s</p>\n", fortune[rand.Intn(len(fortune))])
4 fmt.Fprintf(w, "<img src='/a/chld.png' alt='chld'><br><br>\n")
5- fmt.Fprintf(w, "<a href=https://codeberg.org>berg</a> | <a href=https://sr.ht/~chld/>srht</a>")
6+ fmt.Fprintf(w, "<a href=https://codeberg.org/chld>berg</a> | <a href=https://sr.ht/~chld/>srht</a> | <a href=https://codeberg,org/chld/web>site src</a>")
7
8 c, _ := os.ReadFile("./a/index.html"); fmt.Fprintf(w, "\n\n<br>\n%s", c)
9 d, _ := os.ReadFile("./a/diary.html"); fmt.Fprintf(w, "\n\n<br><p markdown=span>\n%s</p>\n", d)