From 6de2f25e926d385c6ec69e4518b56844db8a08c6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Oct 2024 22:21:07 -0300 Subject: content: generateFlashActGalleryPage: special-treat html in names --- src/content/dependencies/generateFlashActGalleryPage.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateFlashActGalleryPage.js b/src/content/dependencies/generateFlashActGalleryPage.js index 1fa6de51..8f174b21 100644 --- a/src/content/dependencies/generateFlashActGalleryPage.js +++ b/src/content/dependencies/generateFlashActGalleryPage.js @@ -1,5 +1,7 @@ import {stitchArrays} from '#sugar'; +import striptags from 'striptags'; + export default { contentDependencies: [ 'generateCoverGrid', @@ -8,6 +10,7 @@ export default { 'generatePageLayout', 'image', 'linkFlash', + 'linkFlashAct', 'linkFlashIndex', ], @@ -20,6 +23,9 @@ export default { flashIndexLink: relation('linkFlashIndex'), + flashActNavLink: + relation('linkFlashAct', act), + flashActNavAccent: relation('generateFlashActNavAccent', act), @@ -55,7 +61,7 @@ export default { relations.layout.slots({ title: language.$(pageCapsule, 'title', { - flash: data.name, + flash: striptags(data.name), }), color: data.color, @@ -81,7 +87,7 @@ export default { navLinks: [ {auto: 'home'}, {html: relations.flashIndexLink}, - {auto: 'current'}, + {html: relations.flashActNavLink}, ], navBottomRowContent: relations.flashActNavAccent, -- cgit 1.3.0-6-gf8a5