diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-03-05 20:47:47 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-03-05 20:47:47 -0400 |
commit | 203f324ed4eda2d51a8dbaf82d9694f837b87a7b (patch) | |
tree | b73d96c923d2327d7d0adee8d6da6d663601118e /src/write | |
parent | 20b5bdeb15fd23657606a8e473f44f89626a87a6 (diff) |
add a few missing headings to skippers
Diffstat (limited to 'src/write')
-rw-r--r-- | src/write/page-template.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/write/page-template.js b/src/write/page-template.js index 663c1d90..8a3b44e8 100644 --- a/src/write/page-template.js +++ b/src/write/page-template.js @@ -414,16 +414,21 @@ export function generateDocumentHTML(pageInfo, { // Hilariously jank. Sorry! const hasID = id => mainHTML.includes(`id="${id}"`); + const hasTracks = hasID('tracks'); + const hasArt = hasID('art'); + const hasFlashes = hasID('flashes'); const hasContributors = hasID('contributors'); const hasReferences = hasID('references'); const hasReferencedBy = hasID('referenced-by'); const hasSamples = hasID('samples'); const hasSampledBy = hasID('sampled-by'); + const hasFeatures = hasID('features'); const hasFeaturedIn = hasID('featured-in'); const hasLyrics = hasID('lyrics'); const hasSheetMusicFiles = hasID('sheet-music-files'); const hasMidiProjectFiles = hasID('midi-project-files'); const hasAdditionalFiles = hasID('additional-files'); + const hasCommentary = hasID('commentary'); const hasArtistCommentary = hasID('artist-commentary'); const skippersHTML = @@ -459,6 +464,12 @@ export function generateDocumentHTML(pageInfo, { class: 'skipper-list' }, processSkippers([ + hasTracks && + ['#tracks', 'tracks'], + hasArt && + ['#art', 'art'], + hasFlashes && + ['#flashes', 'flashes'], hasContributors && ['#contributors', 'contributors'], hasReferences && @@ -469,6 +480,8 @@ export function generateDocumentHTML(pageInfo, { ['#samples', 'samples'], hasSampledBy && ['#sampled-by', 'sampledBy'], + hasFeatures && + ['#features', 'features'], hasFeaturedIn && ['#featured-in', 'featuredIn'], hasLyrics && @@ -479,6 +492,8 @@ export function generateDocumentHTML(pageInfo, { ['#midi-project-files', 'midiProjectFiles'], hasAdditionalFiles && ['#additional-files', 'additionalFiles'], + hasCommentary && + ['#commentary', 'commentary'], hasArtistCommentary && ['#artist-commentary', 'artistCommentary'], ])), |