commit 67c6507

chld  ·  2026-06-23 03:57:23 +0000 UTC
parent c28d56b
blog generation scirpt
4 files changed,  +19, -91
+1, -0
1@@ -2,3 +2,4 @@
2  findme.html
3 webring.html
4    blog.html
5+contents_blog.html
+0, -76
 1@@ -1,76 +0,0 @@
 2-
 3-<style>
 4-body {
 5-    background-color: #f0ffae;
 6-    color: 	      #0f0f0f;          
 7-
 8-    padding-top:      80px;
 9-    padding-bottom:   80px;
10-    padding-left:     80px;
11-    padding-right:    80px;
12-}
13-
14-a {
15-    color:           #005500;      
16-    text-decoration: none; 
17-}
18-
19-a:hover {
20-    color:            #ffffff; 
21-    background-color: #005500;
22-}
23-
24-a:active {
25-    color: #ffffff;
26-}
27-</style>
28-<body>
29-<center>
30-<link rel="icon" type="image/x-icon" href="assets/favicon.png">
31-
32-<p id="fortune"></p>
33-<br>
34-<a href=index.html style="color: #0f0f0f;"><h1 style="color: #0f0f0f;">CHLD</h1></a>
35-<p>[ <a href=index.html>home</a> | <a href=https://codeberg.org/chld/web>src</a> | <a href=https://4plt.ch>ROOT</a> ]</p>
36-/* <a href=findme.html>me</a> | <a href=webring.html>webring</a> | <a href=>blog</a> */
37-<script>
38-        const fortunes = [
39-            "so good",
40-            "its chld",
41-            "who you know and hate",
42-            "fuck, man",
43-            "cholodu",
44-            "codeberg",
45-            "sourcehut is ran by a pedo",
46-            "im unsure ",
47-            "imo ",
48-            "im green",
49-            "how do you know my ip",
50-            "im not european, stop saying so",
51-            "neuswc",
52-            "<a href=wayland.fyi>wayland</a>",
53-            "<a href=9larp.net>is down</a>",
54-            "nusrat is unwise",
55-            "is this fortune even random",
56-            "you know i can just embed anything here, my static site is insecure like that",
57-            "30 sloc go backend? completely static now.",
58-            "shoot me, <a href=https://shrub.industries>shrub</a>",
59-            "<script>alert(\"caught you using javascript\")<\/script>",
60-            "runs in dillo? i think",
61-            "css",
62-            "fuck, woman",
63-            "9front is cool",
64-            "i may have emmc storage",
65-	    "thank you <a href=https://4plt.ch>for hosting this!</a>",
66-            "is this not running off of localhost",
67-            "pita, are you hosting this?",
68-            "join #derive on <a href=https://ergo.chat>irc</a>",
69-            "exploit my website then"
70-        ];
71-
72-        const randomIndex = Math.floor(Math.random() * fortunes.length);
73-        document.getElementById("fortune").innerHTML = fortunes[randomIndex];
74-</script></center><br>
75-<p>this is where chld writes blogs.<br>sometimes</p>
76-<br>
77-<p>currently we have no blogs here x_x</p>
+0, -15
 1@@ -1,15 +0,0 @@
 2-<p>this is where chld writes blogs.<br>sometimes</p>
 3-<br>
 4-<p>currently we have no blogs here x_x<br>
 5-actually we do but that blog is a test so you may not want to spend time reading it</p>
 6-<br>
 7-<p>	<a href=blog/hello_world.html>hello world</a></p>
 8-<br>
 9-<p>ok, <i>now</i> i am kidding. read these below me please!!</p>
10-<br>
11-<p>	<a href=blog/unmotivated.html>unmotivated</a></p>
12-<p>	<a href=blog/yar_har.html>yar har</a></p>
13-<br><br>
14-<img src=assets/writer.png alt="i drew that with a trackpad okay dont hurt me">
15-
16-<title>blog</title>
+18, -0
 1@@ -0,0 +1,18 @@
 2+#!/bin/sh
 3+
 4+ba=0
 5+
 6+echo '<p>this is where chld writes blogs.<br>'
 7+for i in blog/*.html; do ba=$((ba+1));done
 8+echo "at the moment we have <i>$ba</i> blogs. read some!!</p>"
 9+
10+echo "<p style='margin-left: 40px;'>"
11+for i in blog/*.html; do
12+	echo "<a href=$i>"
13+	echo $i|sed 's#blog/##g'|sed 's/.html//g'|sed 's/_/ /g'
14+	echo "</a><br>"
15+done
16+echo "</p>"
17+
18+echo "<br><br><img src=assets/writer.png alt='i drew this with a trackpad'>"
19+echo "<title>blog</title>"