about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TM17
1 files changed, 6 insertions, 11 deletions
diff --git a/TM b/TM index a4f2721..3516d66 100644 --- a/TM +++ b/TM
@@ -1,19 +1,14 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<meta charset=utf-8> 2<meta charset=utf-8>
3<title>$(T|sed 's/<[^>]\+>//g')</title> 3<title>$(T|sed 's/<[^>]\+>//g')</title>
4$(q -d S && 4$(q -d S/s.css&&e '<link rel=stylesheet href=S/s.css>'||
5e '<link rel=stylesheet href=S/css.css>' || 5e '<style>body{max-width:70ch;padding:1em;margin:auto}
6e '<style> 6#toc{background:pink;padding:1em}</style>')
7body{max-width:70ch;padding:2ch;margin:auto;font:18px/1.4 serif;} </style>')
8
9<h1>$(T)</h1> 7<h1>$(T)</h1>
10$(B|./lht) 8$(B|./lht)
11 9$(q "${N%.*}" = index&&(e '<ul id=toc>'
12$(q "${N%%.*}" = index&&( 10for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}"
13e '<ul id=toc>' 11e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>"
14for p in I/*;do q "$p" = "$F"&&continue;
15n="${p#I/}";n="${n%%.*}.htm"
16e "<li><a href=\"$n\">$(sed 1q $p)</a></li>"
17done 12done
18e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) 13e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
19<footer>&copy; 2019 Case Duckworth</footer> 14<footer>&copy; 2019 Case Duckworth</footer>