From 4fd52097478e6f6ea45259f5765e4e82a1fd09a7 Mon Sep 17 00:00:00 2001 From: poacher Date: Fri, 9 Oct 2026 11:10:06 -0400 Subject: [PATCH] fix: allow for multiple documentation pages --- flake.nix | 3 ++- templates/docsPage.nix | 8 ++++---- templates/header.nix | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 13f8b8b..ef076a2 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ }; }; }; + outputs = { nixpkgs, spoonful, @@ -65,7 +66,7 @@ spoonful = { pages = lib.importContent ./content/spoonful; - template = templates.docsPage; + template = templates.docsPage "spoonful"; pandoc = { headingShift = null; luaFilters = []; diff --git a/templates/docsPage.nix b/templates/docsPage.nix index b920eb3..8b9c487 100644 --- a/templates/docsPage.nix +++ b/templates/docsPage.nix @@ -1,4 +1,4 @@ -{ +name: { page, nav, ... @@ -10,8 +10,8 @@ isTopIndex = page.isSectionIndex && page.sectionPath == []; titleTag = if isTopIndex - then "Spoonful - poacher" - else "${page.title} - Spoonful - poacher"; + then "${name} - poacher" + else "${page.title} - ${name} - poacher"; in '' @@ -32,7 +32,7 @@ in ''
diff --git a/templates/header.nix b/templates/header.nix index a5ab22a..36b54ae 100644 --- a/templates/header.nix +++ b/templates/header.nix @@ -14,6 +14,7 @@ in '' '' -- knotmirror 0.0.1