1
0
Fork 0

refactor: better heads generation

This commit is contained in:
Lucien Cartier-Tilet 2023-04-06 14:10:38 +02:00
parent 0215373c0b
commit 58bdafec6c
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 3 additions and 7 deletions

View File

@ -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;