From 6eb11a8e098ee2ab7b66271cb6e9f2892005a88e Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 11 May 2023 00:26:24 +0200 Subject: [PATCH] refactor: simplify code head generation --- content/.vuepress/head.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/.vuepress/head.ts b/content/.vuepress/head.ts index 3830428..1b7a6ad 100644 --- a/content/.vuepress/head.ts +++ b/content/.vuepress/head.ts @@ -118,10 +118,9 @@ const simplifiedHead = [ ]; let head = []; -simplifiedHead.map((tag: SimplifiedHeader) => { - let tagName = tag.tag; - tag.content.forEach((element) => { - head.push([tagName, element]); +simplifiedHead.forEach((tag) => { + tag.content.forEach((element: any) => { + head.push([tag.tag, element]); }); });