Updated changelog feed format
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s

This commit is contained in:
thepaperpilot 2024-06-10 22:31:47 -05:00
parent 6ca98a038f
commit 8568c86e6f

View file

@ -210,14 +210,15 @@ function toSlug(string) {
const summary = lines[lines.length - 2]; const summary = lines[lines.length - 2];
changes = lines.slice(0, -2).map(line => { changes = lines.slice(0, -2).map(line => {
const [page, changes] = line.split("|").map(p => p.trim()); const [page, changes] = line.split("|").map(p => p.trim());
return `<tr><td><a href="/garden/${page}">${page}</a></td><td>${changes}</td></tr>`; return `<tr><td><a href="/garden/${page}">${page}</a></td><td style="font-family: monospace; white-space: nowrap;">${changes}</td></tr>`;
}).join("\n"); }).join("\n");
resolve( resolve(
`<hr/> `<hr/>
<article class="h-entry"> <article class="h-entry">
<a href="https://code.incremental.social/thepaperpilot/pages/commit/${hash}">Pushed on <time class="dt-published">${time}</time></a> <h2 class="p-name">${summary}</h2>
<p class="p-content"> <p class="p-content">
<a href="https://code.incremental.social/thepaperpilot/pages/commit/${hash}">Pushed on <time class="dt-published">${time}</time></a>
<table> <table>
<thead> <thead>
<tr> <tr>
@ -230,7 +231,6 @@ ${changes}
</tbody> </tbody>
</table> </table>
</p> </p>
<p>${summary}</p>
</article>`); </article>`);
}))); })));
const fd = fs.openSync("site/changelog/index.md", "w+"); const fd = fs.openSync("site/changelog/index.md", "w+");