commit b7ac202

chld  ·  2026-06-24 02:48:22 +0000 UTC
parent dcc3aeb
date for blog
1 files changed,  +8, -7
+8, -7
 1@@ -2,25 +2,26 @@
 2 
 3 ba=0
 4 
 5-echo '<p>this is where chld writes blogs.<br>'
 6+printf '<p>this is where chld writes blogs.<br>'
 7 for i in blog/*.html; do
 8 	grep -q '<!-- THISISABLOG -->' $i || continue
 9 	ba=$((ba+1))
10 done
11 echo "at the moment we have <i>$ba</i> blogs. read some!!</p><br>"
12 
13+echo "<div style='margin-left: 40px; margin-right:500px; font-family: monospace;'>"
14 for i in blog/*.html; do
15-	echo "<p style='margin-left: 40px;'>"
16 	grep -q '<!-- THISISABLOG -->' $i || continue
17 	echo "> "
18 	echo "<a href=$i>"
19 	echo $i|sed 's#blog/##g'|sed 's/.html//g'|sed 's/_/ /g'
20-	echo "</a><br>"
21-	echo "<sup>"
22-	sed -n '2p;3q' $i|sed 's/<p>//'|sed 's#</p>##'
23-	echo "</sup>"
24-	echo "</p>"
25+	printf "</a><span style='float:right;'>"
26+	stat -c '%y' $i |sed 's/ /_/g'|sed 's#\_.*##'|sed 's/-/./g'
27+	echo "</span><br><sup>"
28+	sed -n '2p;3q' $i|sed 's/<p>//'|sed 's#</p>##'|sed 's/\<p>//'|tr -d '<'
29+	echo "</sup><br><br>"
30 done
31+echo "</div>"
32 
33 echo "<br><br><img src=assets/writer.png alt='i drew this with a trackpad'>"
34 echo "<title>blog</title>"