diff options
Diffstat (limited to 'TM')
-rw-r--r-- | TM | 13 |
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>'|| |
5 | e '<style>body{max-width:70ch;padding:1em;margin:auto} | 5 | e '<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' |
10 | for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}" | 10 | for p in I/*;do q $p = $F&&continue;n="${p#I/}" |
11 | e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>" | 11 | e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>" |
12 | done | 12 | done;e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) |
13 | e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) | 13 | <p id=ft>© 2019</p> |
14 | <footer>© 2019 Case Duckworth</footer> | ||