about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2023-10-29 11:20:06 +0100
committerAlan Pearce2023-10-29 11:20:06 +0100
commit3a9b920d4981ac28becb9634ec964dc2e2104401 (patch)
treeabb36918e883fef64c014ed049fe4de8165a32fd /src
parent5b37033b1623ad5c3b8fd89b1ee85b04b1811609 (diff)
downloadwebsite-3a9b920d4981ac28becb9634ec964dc2e2104401.tar.lz
website-3a9b920d4981ac28becb9634ec964dc2e2104401.tar.zst
website-3a9b920d4981ac28becb9634ec964dc2e2104401.zip
Remove extra space after Home link
Diffstat (limited to 'src')
-rw-r--r--src/templates.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates.ts b/src/templates.ts
index a9fd857..0a0de83 100644
--- a/src/templates.ts
+++ b/src/templates.ts
@@ -16,6 +16,7 @@ function addMenu(
   parent: cheerio.Cheerio<cheerio.AnyNode>,
   child: cheerio.Cheerio<cheerio.AnyNode>,
 ) {
+  parent.empty();
   for (const link of config.extra.main_menu) {
     parent.append(child.clone().attr("href", link.url).text(link.name));
   }