posts/lri-log-2021w18: New post
haunt: Pass `--section-divs` to Pandoc
Make posts' HTML more semantic by delimiting sections.
haunt: Defer TOC generation to Pandoc
When using [`--section-divs`], Pandoc outputs HTML that is not
compatible with our homegrown TOC generation algorithm (namely,
it attaches an ID to the parent section element instead of the
heading element). Rather than try to fix it, use Pandoc's own
table of contents.
Note that TOC generation must be always enabled for the HTML writer,
for [it does not look at the `toc` option in metadata][pandoc#6664].
However, we can still use it in our custom TOC template to determine
if a TOC must be printed at all.
flake/production: Update Content-Security-Policy
posts/lri-log-2021w16: New post
ci: Trigger SnowWeb redeployment on successful build
flake: Add SnowWeb headers to production build
Set up additional HTTP headers served from https://aasg.name.
flake: Add a 'production' package
The production package will be what actually goes live on
https://aasg.name. At the moment, the two differences from the default
package are the inclusion of Matrix-related well-known links (which only
make sense on the live domain) and the Brotli compression of HTML/CSS/JS
files. No more changes should happen aside from more well-known links.
haunt: Copy over anything in the static directory
Rather than specify directories individually in haunt.scm and risk
forgetting to update it when we add a new subdirectory in the future,
just scoop it up as a whole.
pages/dn42: Remove mention of Charybdis as IPv4-only
Since nixos-configurations@c00b0c7c8c3f, we're now using Oracle Cloud's
just-announced IPv6 support instead of Hurricane Electric's tunnel,
which means peers can now connect over IPv6 without first travelling
Set post dates in UTC
There was some confusion as to whether to tag post dates in UTC
or in the local timezone. After reading Guile's SRFI-19 docs
and experimenting on the REPL, I've determined that Haunt will
read post dates in the local timezone by default, but since that's
UTC in the Nix build environment, our post dates too must be in UTC.
New post: lri-log-2021w14
pages/dn42: Add host 'chernava'
posts/lri-log-2021w13: Fix caddy-reimport.path
The path unit as written is not started on boot and does not trigger
on symlink changes. Fix both issues.
haunt: Reword license statement in the footer
Now that we have a work name, we can follow the Creative Commons default
text more closely.
haunt: Link to source commit in the site footer
New post: lri-log-2021w13
css: Unfix the header bar from the viewport
Fixing its interaction with direct section links, and how the fix
interacts with links in the paragraph before a heading, wasn't worth
the total effort that would be spent on it. Maybe if I someday add one
of those reading trackers for long-form articles (of which I have none)
I'll revisit this.
New post: lri-log-2021w12
flake: Provide an empty install phase
If `dontInstall` is enabled, the install hooks are not run. We'll be
needing those elsewhere so provide an install phase that just run the
flake: Run build phase hooks
Despite [RFC 32] being accepted, it doesn't seem to have been
implemented yet, so we need to call the pre- and post-build hooks
[RFC 32]: https://github.com/NixOS/rfcs/blob/master/rfcs/0032-run-phase-changes-for-better-nix-shell-use.md