acdw.net/O/.colophon.html

57 lines
1.2 KiB
HTML

<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>colophon</title>
<link rel=stylesheet type=text/css href=S/acdw.css>
</head>
<body>
<header>
<a href="./index.html"
>acdw</a>
<span class=phi>&#x2C77;</span>
<a href="./blog.html"
>blog</a>
<a href="./code.html"
>code</a>
<a href="./cooking.html"
>cooking</a>
<a href="./dogs.html"
>dogs</a>
<a href="./noise.html"
>noise</a>
<a href="./writing.html"
>writing</a>
</header>
<main>
<h1>colophon</h1>
<h2>nef</h2>
<P>now 299 characters,
a 69% reduction
from <a href="https://git.sr.ht/~acdw/unk">UNK</a>.
<pre><code>#!/bin/sh -C
rm -r O;mkdir O;cp -r S O;alias P=echo
X()(eval "$(P "cat&lt;&lt;.";cat;P;P .)")
P&gt;Z 'for F;do X&lt;L&gt;O/${F#I};done'
P&gt;R '!/^&lt;.*&gt;$/{$0="&lt;P&gt;"$0}//'
P&gt;L '&lt;!DOCTYPE html&gt;&lt;title&gt;$(sed q $F)&lt;/title&gt;
$(sed 1d $F|X|awk -vRS= -fR)&lt;hr&gt;/$(for P in I/*
do P "&lt;a href=.${P#I/}&gt;$(sed q $P)&lt;/a&gt;";done)'
. ./Z
</code></pre>
</main>
<footer>
<span class=phi>&copy; 2020 Case Duckworth</span>
<span class=phi>&#x2C77;</span>
<a href="./.license.html"
>license</a>
<a href="./.colophon.html"
class=current
>colophon</a>
<a href="./.rss.xml"
></a>
<a href="./.atom.xml"
></a>
</footer>
</body>