diff options
author | Case Duckworth | 2019-07-01 16:46:03 -0500 |
---|---|---|
committer | Case Duckworth | 2019-07-01 16:46:03 -0500 |
commit | bb759e6e90fb57b964ae13e48db69848fe6605f5 (patch) | |
tree | f0dcb68172066e4234a192e7c2d11d30ba68225e | |
parent | Fix permissions (diff) | |
download | unk-bb759e6e90fb57b964ae13e48db69848fe6605f5.tar.gz unk-bb759e6e90fb57b964ae13e48db69848fe6605f5.zip |
Better default template
-rw-r--r-- | TM | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/TM b/TM new file mode 100644 index 0000000..a4f2721 --- /dev/null +++ b/TM | |||
@@ -0,0 +1,19 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <meta charset=utf-8> | ||
3 | <title>$(T|sed 's/<[^>]\+>//g')</title> | ||
4 | $(q -d S && | ||
5 | e '<link rel=stylesheet href=S/css.css>' || | ||
6 | e '<style> | ||
7 | body{max-width:70ch;padding:2ch;margin:auto;font:18px/1.4 serif;} </style>') | ||
8 | |||
9 | <h1>$(T)</h1> | ||
10 | $(B|./lht) | ||
11 | |||
12 | $(q "${N%%.*}" = index&&( | ||
13 | e '<ul id=toc>' | ||
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 | ||
18 | e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) | ||
19 | <footer>© 2019 Case Duckworth</footer> | ||