From 98ac5a888404ba4785ab2c17c544baaf3b5554f4 Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 13 Apr 2021 20:58:46 +0530 Subject: [PATCH] Lowercase titles while rendering CSS lowercasing doesn't work in ereaders, so we have to do it manually --- seance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seance.js b/seance.js index cffa969..d5e48d9 100644 --- a/seance.js +++ b/seance.js @@ -774,7 +774,7 @@ class Seance { pics.push(`${picFolder}/${postSlug}.${ext}`) } - let c = cheerio.load(`${featurePicTag}

${post.title}

${post.html}`) + let c = cheerio.load(`${featurePicTag}

${post.title.toLowerCase()}

${post.html}`) // hunt for other pics // TODO: make asynchronous