diff options
Diffstat (limited to 'L')
-rw-r--r-- | L | 13 |
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>'|| | ||
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> | ||