about summary refs log tree commit diff stats
path: root/TM
diff options
context:
space:
mode:
Diffstat (limited to 'TM')
-rw-r--r--TM19
1 files changed, 19 insertions, 0 deletions
diff --git a/TM b/TM new file mode 100644 index 0000000..a4f2721 --- /dev/null +++ b/TM
@@ -0,0 +1,19 @@
1<!DOCTYPE html>
2<meta charset=utf-8>
3<title>$(T|sed 's/<[^>]\+>//g')</title>
4$(q -d S &&
5e '<link rel=stylesheet href=S/css.css>' ||
6e '<style>
7body{max-width:70ch;padding:2ch;margin:auto;font:18px/1.4 serif;} </style>')
8
9<h1>$(T)</h1>
10$(B|./lht)
11
12$(q "${N%%.*}" = index&&(
13e '<ul id=toc>'
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
18e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
19<footer>&copy; 2019 Case Duckworth</footer>