Compare commits

..

1 Commits

Author SHA1 Message Date
0a20291b94 upgrade build configuration 2023-10-11 21:43:43 -04:00
3 changed files with 4 additions and 16 deletions

View File

@ -1,8 +1,7 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 15
depth: 5
steps:
build:

View File

@ -31,7 +31,7 @@
media="screen"
rel="stylesheet"
type="text/css"
href="/css/site.css?1697075405981"
href="/css/site.css?1697074571690"
/>
<meta
property="title"
@ -150,7 +150,6 @@
<details>
<summary>Recent Changes</summary>
<ul id="changesList">
<li>October 11, 2023 - add this fancy recent changes module</li>
<li>
October 8, 2023 - move Burnt Books into Hey Kids!, update
archestratus to note there's no cafe anymore

View File

@ -5,24 +5,14 @@ import stores from "./stores.json" assert { type: "json" };
function GetRecentChanges() {
const res = process
.execSync('git log -15 --pretty=format:"%ct %s"')
.execSync('git log -4 --pretty=format:"%ct %s"')
.toString();
return res.split("\n");
}
function ChangeLog(logs) {
let res = "\n";
let i = 0;
logs.forEach((l) => {
if (
i > 3 ||
l.includes("[skip]") ||
l.includes("caddy") ||
l.includes("renovate")
) {
return;
}
i++;
logs.forEach((l, i) => {
const s = l.split(" ");
const date = new Date(s[0] * 1000).toLocaleDateString("en-US", {
year: "numeric",