about summary refs log tree commit diff stats
path: root/TM
blob: 3516d66bff3b8f140a36f2f640301b588d19f5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset=utf-8>
<title>$(T|sed 's/<[^>]\+>//g')</title>
$(q -d S/s.css&&e '<link rel=stylesheet href=S/s.css>'||
e '<style>body{max-width:70ch;padding:1em;margin:auto}
#toc{background:pink;padding:1em}</style>')
<h1>$(T)</h1>
$(B|./lht)
$(q "${N%.*}" = index&&(e '<ul id=toc>'
for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}"
e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>"
done
e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
<footer>&copy; 2019 Case Duckworth</footer>