From 3a9b920d4981ac28becb9634ec964dc2e2104401 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 29 Oct 2023 11:20:06 +0100 Subject: Remove extra space after Home link --- src/templates.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/templates.ts') 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, child: cheerio.Cheerio, ) { + parent.empty(); for (const link of config.extra.main_menu) { parent.append(child.clone().attr("href", link.url).text(link.name)); } -- cgit 1.4.1