commit 1fc9c0b
chld
·
2026-08-01 20:11:27 +0000 UTC
parent 5c93bbf
start wiki test
4 files changed,
+26,
-6
A
'
+9,
-0
1@@ -0,0 +1,9 @@
2+<h2><a href=https://srcdump.net/soggy/cotton>cotton</a> is a tiny windowed virtual computer.</h2>
3+<p>baby's first blog<p>
4+<br>
5+<p>hi chld, this is your first blog. and hi, hello to my audience reading this<a href=https://en.wikipedia.org/wiki/Nothing><sup>[1]</sup></a><br>
6+so i wanna try and make this shell script that grabs from a directory blog/, and the specified html file blog thing, there will be html comments that are like metadata that the shell script reads and echoes into the blog landing thing<br>
7+<br>okay thats it, see you later</p>
8+
9+<title>blog - hello world</title>
10+<!-- THISISABLOG -->
+0,
-0
+5,
-6
1@@ -5,19 +5,18 @@ ba=0
2 printf '<h2>this is the wiki.</h2>'
3 echo "<p>where chld writes about interesting things.</p><br>"
4
5-echo "<div style='margin-left: 40px; margin-right:500px; font-family: monospace;'>"
6-for i in blog/*.html; do
7+#echo "<div style='margin-left: 40px; margin-right:500px; font-family: monospace;'>"
8+for i in wiki/*.html; do
9 grep -q '<!-- THISISABLOG -->' $i || continue
10 echo "> "
11 echo "<a href=$i>"
12- echo $i|sed 's#blog/##g'|sed 's/.html//g'|sed 's/_/ /g'
13+ echo $i|sed 's#wiki/##g'|sed 's/.html//g'|sed 's/_/ /g'
14 printf "</a><span style='float:right;'>"
15 stat -c '%y' $i |sed 's/ /_/g'|sed 's#\_.*##'|sed 's/-/./g'
16 echo "</span><br><sup>"
17 sed -n '2p;3q' $i|sed 's/<p>//'|sed 's#</p>##'|sed 's/\<p>//'|tr -d '<'
18 echo "</sup><br><br>"
19 done
20-echo "</div>"
21+#echo "</div>"
22
23-echo "<br><br><img src=assets/writer.png alt='i drew this with a trackpad'>"
24-echo "<title>blog</title>"
25+echo "<title>wiki</title>"
+12,
-0
1@@ -0,0 +1,12 @@
2+<h2><a href=https://srcdump.net/soggy/cotton>cotton</a> is a tiny windowed virtual computer.</h2>
3+<p>this page will document cotton and its tools as it grows.<p>
4+<br>
5+<img src=../assets/blinky.png>
6+<p>generated cot drawing a pbm image</p>
7+<br>
8+<p>hi chld, this is your first blog. and hi, hello to my audience reading this<a href=https://en.wikipedia.org/wiki/Nothing><sup>[1]</sup></a><br>
9+so i wanna try and make this shell script that grabs from a directory blog/, and the specified html file blog thing, there will be html comments that are like metadata that the shell script reads and echoes into the blog landing thing<br>
10+<br>okay thats it, see you later</p>
11+
12+<title>blog - hello world</title>
13+<!-- THISISABLOG -->