This commit is contained in:
sophie 2024-04-26 01:30:40 +01:00
parent 379ab8e2a4
commit 96517d4dc7
2 changed files with 2 additions and 3 deletions

View File

@ -272,8 +272,7 @@ function generateTemplates() {
templates["build_info"] =
`# of commits ${commits}\n` +
`# of pages ${pages.length}\n` +
`last built on ${date.toUTCString().replace("GMT", "UTC")}\n` +
`last rebooted ${bootDate.toUTCString().replace("GMT", "UTC")}`
`last built on ${date.toUTCString().replace("GMT", "UTC")}`
// → {gmi_webrings} template (remove trailing newline)
templates["gmi_webrings"] = templates["webrings.gmi"].substring(0, templates["webrings.gmi"].length - 1)

View File

@ -6,7 +6,7 @@
: -1;
if (views > -1)
document.getElementsByTagName("pre")[0]
document.querySelector(".wrap pre")[0]
.innerText += "\nviews " + views;
else
console.log("!! error connecting to /api/viewcount");