about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2019-07-01 17:12:48 -0500
committerCase Duckworth2019-07-01 17:12:48 -0500
commit3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e (patch)
tree28be60ffed189b22c7bed7b359d2a5061affbf05
parentAdd link to LICENSE (diff)
downloadunk-3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e.tar.gz
unk-3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e.zip
Add styling
-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>