From 58bdafec6c6fdc79f8683bca21cb1006f78a68a6 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 6 Apr 2023 14:10:38 +0200 Subject: [PATCH] refactor: better heads generation --- docs/.vuepress/head.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/.vuepress/head.ts b/docs/.vuepress/head.ts index ffdfe4a..46e9542 100644 --- a/docs/.vuepress/head.ts +++ b/docs/.vuepress/head.ts @@ -129,17 +129,13 @@ const simplifiedHead = [ ]; let head = []; -simplifiedHead.map((tag: SimplifiedHeader) => { +simplifiedHead.forEach((tag: SimplifiedHeader) => { let tagName = tag.tag; tag.content.forEach((element) => { head.push([tagName, element]); }); - head.push([ - 'a', - { rel: 'me', href: 'https://emacs.ch/@phundrak' }, - 'Mastodon', - ]); - head.push(['script', {}, matomoTrackingCode]); }); +head.push(['a', { rel: 'me', href: 'https://emacs.ch/@phundrak' }, 'Mastodon']); +head.push(['script', {}, matomoTrackingCode]); export default head;