about summary refs log tree commit diff stats
path: root/TM
diff options
context:
space:
mode:
authorCase Duckworth2019-07-01 17:25:55 -0500
committerCase Duckworth2019-07-01 17:25:55 -0500
commit9f66c208c5d04f334cc2501d256f8d6525aa3adf (patch)
treed19e5ee6d5fcc1306487220ec26c587d7016b535 /TM
parentMove brackets outside email (diff)
downloadunk-9f66c208c5d04f334cc2501d256f8d6525aa3adf.tar.gz
unk-9f66c208c5d04f334cc2501d256f8d6525aa3adf.zip
Change styling and make things less safe
Diffstat (limited to 'TM')
-rw-r--r--TM13
1 files changed, 6 insertions, 7 deletions
diff --git a/TM b/TM index 3516d66..6b63dbb 100644 --- a/TM +++ b/TM
@@ -1,14 +1,13 @@
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/s.css&&e '<link rel=stylesheet href=S/s.css>'|| 4$(q -f S/s.css&&e '<link rel=stylesheet href=S/s.css>'||
5e '<style>body{max-width:70ch;padding:1em;margin:auto} 5e '<style>body{max-width:70ch;padding:1em;margin:auto}
6#toc{background:pink;padding:1em}</style>') 6#toc{background:pink;padding:1em;display:block}</style>')
7<h1>$(T)</h1> 7<h1>$(T)</h1>
8$(B|./lht) 8$(B|./lht)
9$(q "${N%.*}" = index&&(e '<ul id=toc>' 9$(q "${N%.*}" = index&&(e '<ul id=toc>Pages'
10for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}" 10for p in I/*;do q $p = $F&&continue;n="${p#I/}"
11e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>" 11e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>"
12done 12done;e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
13e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) 13<p id=ft>&copy; 2019</p>
14<footer>&copy; 2019 Case Duckworth</footer>