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^0 X-Git-Url: https://git.ladys.computer/GitWikiWeb/commitdiff_plain/81ca986f70f2ccdf53e8524e3686ab87056e3e31?ds=sidebyside 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 {