« get me outta code hell

content: generateFlashActGalleryPage: special-treat html in names - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-19 22:21:07 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-11-02 22:25:48 -0300
commit6de2f25e926d385c6ec69e4518b56844db8a08c6 (patch)
tree70a39aa68c0d83ae3fa6b1d44a4ae5b4830475d6 /src/content
parent54e85616601231d8a551124648be4f56c3ec800b (diff)
content: generateFlashActGalleryPage: special-treat html in names
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateFlashActGalleryPage.js10
1 files changed, 8 insertions, 2 deletions
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,