commit eaeae9d
chld
·
2026-07-07 18:52:21 +0000 UTC
parent bd554d8
add sitemap
4 files changed,
+75,
-1
+3,
-0
1@@ -3,3 +3,6 @@ findme.html
2 webring.html
3 blog.html
4 contents_blog.html
5+contents_map.html
6+sitemap.html
7+test.html
+25,
-0
1@@ -0,0 +1,25 @@
2+#!/bin/sh
3+
4+ba=0
5+
6+printf '<p>take a look at the sitemap, find what you want.</p>'
7+ba=$(find . -type f|grep -v git|wc -l)
8+echo "there are <i>$ba</i> files composing this site</p><br>"
9+
10+echo "<div style='margin-left: 40px; margin-right:500px; font-family: monospace;'>"
11+
12+find . -maxdepth 1 -type f|grep -v git|while read -r f; do
13+ printf '<a href=%s>%s<br></a>\n' $f $(printf $f|sed 's#./##')
14+done;printf '<br>\n'
15+
16+for i in $(find -maxdepth 1 -type d|grep -v git); do
17+ [ $i = "." ] && continue
18+ printf '<h3>%s</h3>\n' $(printf $i|sed 's#./##')
19+ for j in $(find $i -maxdepth 1 -type f); do
20+ printf '<a href=%s>%s<br></a>\n' $j $(printf $j|sed 's#./##')
21+ done;printf '<br>\n'
22+done
23+
24+echo "</div>"
25+
26+echo "<title>sitemap</title>"
+1,
-1
1@@ -5,4 +5,4 @@
2 <a href=PRF/index.html style="color: #aaaaaa; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">
3 <h1 style="color: #aaaaaa;">chld</h1></a>
4 <p>[ <a href=PRF/index.html>home</a> | <a href=https://codeberg.org/chld/web>src</a> | <a href=https://4plt.ch>ROOT</a> ]</p>
5-/* <a href=PRF/findme.html>me</a> | <a href=PRF/webring.html>webring</a> | <a href=PRF/blog.html>blog</a> */
6+/* <a href=PRF/findme.html>me</a> | <a href=PRF/webring.html>webring</a> | <a href=PRF/blog.html>blog</a> | <a href=PRF/sitemap.html>sitemap</a> */
+46,
-0
1@@ -0,0 +1,46 @@
2+<p>take a look at the sitemap, find what you want.</p>there are <i>37</i> files composing this site</p><br>
3+<div style='margin-left: 40px; margin-right:500px; font-family: monospace;'>
4+<a href=./style.css>style.css<br></a>
5+<a href=./assemble.sh>assemble.sh<br></a>
6+<a href=./main.html>main.html<br></a>
7+<a href=./index.html>index.html<br></a>
8+<a href=./gensitemap.sh>gensitemap.sh<br></a>
9+<a href=./fortune.js>fortune.js<br></a>
10+<a href=./'>'<br></a>
11+<a href=./contents_find.html>contents_find.html<br></a>
12+<a href=./contents_webring.html>contents_webring.html<br></a>
13+<a href=./contents.html>contents.html<br></a>
14+<a href=./button.html>button.html<br></a>
15+<a href=./genblog.sh>genblog.sh<br></a>
16+<a href=./test.html>test.html<br></a>
17+<br>
18+<h3>blog</h3>
19+<a href=./blog/hello_world.html>blog/hello_world.html<br></a>
20+<a href=./blog/yar_har.html>blog/yar_har.html<br></a>
21+<a href=./blog/unmotivated.html>blog/unmotivated.html<br></a>
22+<br>
23+<h3>assets</h3>
24+<a href=./assets/gregg.gif>assets/gregg.gif<br></a>
25+<a href=./assets/prideflag.jpg>assets/prideflag.jpg<br></a>
26+<a href=./assets/bi.png>assets/bi.png<br></a>
27+<a href=./assets/pride.png>assets/pride.png<br></a>
28+<a href=./assets/linksbrow.gif>assets/linksbrow.gif<br></a>
29+<a href=./assets/mconalpine.png>assets/mconalpine.png<br></a>
30+<a href=./assets/piracy.png>assets/piracy.png<br></a>
31+<a href=./assets/mc.png>assets/mc.png<br></a>
32+<a href=./assets/xterm.png>assets/xterm.png<br></a>
33+<a href=./assets/cc0.png>assets/cc0.png<br></a>
34+<a href=./assets/le_wokeisme.png>assets/le_wokeisme.png<br></a>
35+<a href=./assets/derive.png>assets/derive.png<br></a>
36+<a href=./assets/netbsd.gif>assets/netbsd.gif<br></a>
37+<a href=./assets/favicon.png>assets/favicon.png<br></a>
38+<a href=./assets/bg.png>assets/bg.png<br></a>
39+<a href=./assets/writer.png>assets/writer.png<br></a>
40+<a href=./assets/neovim.gif>assets/neovim.gif<br></a>
41+<a href=./assets/blm-b.png>assets/blm-b.png<br></a>
42+<a href=./assets/CHLDB.png>assets/CHLDB.png<br></a>
43+<a href=./assets/nonazis.png>assets/nonazis.png<br></a>
44+<a href=./assets/freebsd3.gif>assets/freebsd3.gif<br></a>
45+<br>
46+</div>
47+<title>sitemap</title>