diff options
author | Case Duckworth | 2019-07-01 17:12:48 -0500 |
---|---|---|
committer | Case Duckworth | 2019-07-01 17:12:48 -0500 |
commit | 3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e (patch) | |
tree | 28be60ffed189b22c7bed7b359d2a5061affbf05 | |
parent | Add link to LICENSE (diff) | |
download | unk-3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e.tar.gz unk-3c098b5377cf6703bf8db5ab069f1a8ba9b40c4e.zip |
Add styling
-rw-r--r-- | TM | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/TM b/TM index a4f2721..3516d66 100644 --- a/TM +++ b/TM | |||
@@ -1,19 +1,14 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <meta charset=utf-8> | 2 | <meta charset=utf-8> |
3 | <title>$(T|sed 's/<[^>]\+>//g')</title> | 3 | <title>$(T|sed 's/<[^>]\+>//g')</title> |
4 | $(q -d S && | 4 | $(q -d S/s.css&&e '<link rel=stylesheet href=S/s.css>'|| |
5 | e '<link rel=stylesheet href=S/css.css>' || | 5 | e '<style>body{max-width:70ch;padding:1em;margin:auto} |
6 | e '<style> | 6 | #toc{background:pink;padding:1em}</style>') |
7 | body{max-width:70ch;padding:2ch;margin:auto;font:18px/1.4 serif;} </style>') | ||
8 | |||
9 | <h1>$(T)</h1> | 7 | <h1>$(T)</h1> |
10 | $(B|./lht) | 8 | $(B|./lht) |
11 | 9 | $(q "${N%.*}" = index&&(e '<ul id=toc>' | |
12 | $(q "${N%%.*}" = index&&( | 10 | for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}" |
13 | e '<ul id=toc>' | 11 | e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>" |
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 | 12 | done |
18 | e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) | 13 | e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) |
19 | <footer>© 2019 Case Duckworth</footer> | 14 | <footer>© 2019 Case Duckworth</footer> |