about summary refs log tree commit diff stats
path: root/L
diff options
context:
space:
mode:
authorCase Duckworth2021-01-30 15:28:28 -0600
committerCase Duckworth2021-01-30 15:28:28 -0600
commitba91b9d3da4e0ab27c8b648170e02556bd7fb6f1 (patch)
treed752e522c6e22697cfde5cdd3db7bab4c87b8e59 /L
parentAdd links to repos (diff)
downloadunk-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 'L')
-rw-r--r--L13
1 files changed, 13 insertions, 0 deletions
diff --git a/L b/L new file mode 100644 index 0000000..6b63dbb --- /dev/null +++ b/L
@@ -0,0 +1,13 @@
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>'||
5e '<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'
10for p in I/*;do q $p = $F&&continue;n="${p#I/}"
11e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>"
12done;e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
13<p id=ft>&copy; 2019</p>