« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generatePageLayout.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generatePageLayout.js')
-rw-r--r--src/content/dependencies/generatePageLayout.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 4dc56dce..f4dc6460 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -603,9 +603,10 @@ export default {
           `}`);
 
     const numWallpaperParts =
-      html.resolve(slots.styleRules, {normalize: 'string'})
+      styleRulesCSS
         .match(/\.wallpaper-part:nth-child/g)
-        ?.length ?? 0;
+        ?.length ??
+      0;
 
     const wallpaperPartsHTML =
       html.tag('div', {class: 'wallpaper-parts'},