diff options
author | Case Duckworth | 2021-01-30 15:28:28 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-30 15:28:28 -0600 |
commit | ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1 (patch) | |
tree | d752e522c6e22697cfde5cdd3db7bab4c87b8e59 /TM | |
parent | Add links to repos (diff) | |
download | unk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.tar.gz unk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.zip |
Move TM to L; change I/ file names
TM->L saves 3b changing I/ filenames to include the output extension before the input extension saves 4 bytes, and it's more flexible: it can output any type of files now.
Diffstat (limited to 'TM')
-rw-r--r-- | TM | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/TM b/TM deleted file mode 100644 index 6b63dbb..0000000 --- a/TM +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <meta charset=utf-8> | ||
3 | <title>$(T|sed 's/<[^>]\+>//g')</title> | ||
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} | ||
6 | #toc{background:pink;padding:1em;display:block}</style>') | ||
7 | <h1>$(T)</h1> | ||
8 | $(B|./lht) | ||
9 | $(q "${N%.*}" = index&&(e '<ul id=toc>Pages' | ||
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>" | ||
12 | done;e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) | ||
13 | <p id=ft>© 2019</p> | ||