about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2019-07-01 16:46:03 -0500
committerCase Duckworth2019-07-01 16:46:03 -0500
commitbb759e6e90fb57b964ae13e48db69848fe6605f5 (patch)
treef0dcb68172066e4234a192e7c2d11d30ba68225e
parentFix permissions (diff)
downloadunk-bb759e6e90fb57b964ae13e48db69848fe6605f5.tar.gz
unk-bb759e6e90fb57b964ae13e48db69848fe6605f5.zip
Better default template
-rw-r--r--TM19
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 &&
5e '<link rel=stylesheet href=S/css.css>' ||
6e '<style>
7body{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&&(
13e '<ul id=toc>'
14for p in I/*;do q "$p" = "$F"&&continue;
15n="${p#I/}";n="${n%%.*}.htm"
16e "<li><a href=\"$n\">$(sed 1q $p)</a></li>"
17done
18e '</ul>')||(e '<a id=toc href=index.htm>return</a>'))
19<footer>&copy; 2019 Case Duckworth</footer>