Lowercase titles while rendering

CSS lowercasing doesn't work in ereaders, so we have to do it
manually
This commit is contained in:
Hippo 2021-04-13 20:58:46 +05:30
parent 1ddc5f4e7c
commit 98ac5a8884

View file

@ -774,7 +774,7 @@ class Seance {
pics.push(`${picFolder}/${postSlug}.${ext}`)
}
let c = cheerio.load(`${featurePicTag}<h1>${post.title}</h1>${post.html}`)
let c = cheerio.load(`${featurePicTag}<h1>${post.title.toLowerCase()}</h1>${post.html}`)
// hunt for other pics
// TODO: make asynchronous