diff --git a/make-pages/SinglePage.hs b/make-pages/SinglePage.hs index a3cab51..eec36e4 100644 --- a/make-pages/SinglePage.hs +++ b/make-pages/SinglePage.hs @@ -91,7 +91,7 @@ make' nsfw (Info {date, title, artist, tags, nsfwTags, dataBg = ifJust background \bg -> [b| data-bg="$*bg"|] warning' = ifJust (#warning image0) \w -> [b|@4
- $*w + cw: $*w
|] diff --git a/script/single.js b/script/single.js index 09079db..3d4e0fa 100644 --- a/script/single.js +++ b/script/single.js @@ -19,7 +19,7 @@ function setImage(src, href, cw) { } else if (defined(cw)) { let newCaption = document.createElement('figcaption'); newCaption.id = 'cw'; - newCaption.innerHTML = cw; + newCaption.innerHTML = `cw: ${cw}`; newCaption.onclick = openCW; mainfig.insertBefore(newCaption, mainlink); }