diff options
author | Case Duckworth | 2019-07-01 17:25:55 -0500 |
---|---|---|
committer | Case Duckworth | 2019-07-01 17:25:55 -0500 |
commit | 9f66c208c5d04f334cc2501d256f8d6525aa3adf (patch) | |
tree | d19e5ee6d5fcc1306487220ec26c587d7016b535 | |
parent | Move brackets outside email (diff) | |
download | unk-9f66c208c5d04f334cc2501d256f8d6525aa3adf.tar.gz unk-9f66c208c5d04f334cc2501d256f8d6525aa3adf.zip |
Change styling and make things less safe
-rw-r--r-- | TM | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/TM b/TM index 3516d66..6b63dbb 100644 --- a/TM +++ b/TM | |||
@@ -1,14 +1,13 @@ | |||
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/s.css&&e '<link rel=stylesheet href=S/s.css>'|| | 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} | 5 | e '<style>body{max-width:70ch;padding:1em;margin:auto} |
6 | #toc{background:pink;padding:1em}</style>') | 6 | #toc{background:pink;padding:1em;display:block}</style>') |
7 | <h1>$(T)</h1> | 7 | <h1>$(T)</h1> |
8 | $(B|./lht) | 8 | $(B|./lht) |
9 | $(q "${N%.*}" = index&&(e '<ul id=toc>' | 9 | $(q "${N%.*}" = index&&(e '<ul id=toc>Pages' |
10 | for p in I/*;do q "$p" = "$F"&&continue;n="${p#I/}" | 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>" | 11 | e "<li><a href='${n%.*}.htm'>$(sed 1q $p)</a></li>" |
12 | done | 12 | done;e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) |
13 | e '</ul>')||(e '<a id=toc href=index.htm>return</a>')) | 13 | <p id=ft>© 2019</p> |
14 | <footer>© 2019 Case Duckworth</footer> | ||