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