about summary refs log tree commit diff stats
path: root/src/templates.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.ts')
-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));
   }