From f5f805a27dea7dfd9e735dad42a79d81d33024bb Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Wed, 20 Nov 2024 01:09:02 +0100 Subject: [PATCH] drive-by refactoring --- website/content/default.nix | 3 +-- website/presentation/dom.nix | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/website/content/default.nix b/website/content/default.nix index 079fa2de..daccf448 100644 --- a/website/content/default.nix +++ b/website/content/default.nix @@ -28,7 +28,6 @@ in ]; body.content = let - prev-content = prev.html.body.content; to-section = { heading, body, attrs ? { } }: { section = { heading.content = heading; @@ -43,7 +42,7 @@ in }; in [ - (lib.head prev-content) # header + (lib.head prev.html.body.content) { section = { attrs = { }; diff --git a/website/presentation/dom.nix b/website/presentation/dom.nix index ae9bd86d..1c067804 100644 --- a/website/presentation/dom.nix +++ b/website/presentation/dom.nix @@ -505,7 +505,6 @@ let else baseType.merge loc (map (p: p.def // { value = p.processed; }) processed); }; in - # HACK: bail out for now with-section-constraints # TODO: find a reasonable cut-off for where to place raw content (listOf (either str (attrTag categories.flow)));