From: Lady Date: Fri, 28 Jul 2023 05:09:21 +0000 (-0700) Subject: Don’t show date on old recent changes X-Git-Tag: 0.1.1 X-Git-Url: https://git.ladys.computer/GitWikiWeb/commitdiff_plain/7e7165bddf443f6e09955313d8ae00626eeba4fe?ds=sidebyside;hp=5428dd106d223e93f02cff3bdb49b136fa040245 Don’t show date on old recent changes If `recency` is `0`, then we don’t actually know when the change was made; this is a grab‐bag for everything else within the past week. --- diff --git a/build.js b/build.js index 8eab7f4..5c8bd39 100644 --- a/build.js +++ b/build.js @@ -707,14 +707,16 @@ class GitWikiWebPage { refs, } = result; yield* listOfInternalLinks(refs, (link) => ({ - tag: index ? "strong" : "span", + tag: index == 0 ? "span" : "strong", attributes: { "data-recency": `${index}` }, children: [ link, - str` `, - rawInline`()`, + ...(index == 0 ? [] : [ + str` `, + rawInline`()`, + ]), ], })).children; } else {