This commit is contained in:
2025-12-17 18:48:38 -05:00
parent 71493aac51
commit 5c173b2695
2 changed files with 10 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ import * as commonmark from './commonmark.min.js';
async function query(sql, args) {
let result = [];
await ssb.sqlAsync(sql, args, function(row) {
await ssb.sqlAsync(sql, args, function (row) {
result.push(row);
});
return result;
@@ -156,8 +156,9 @@ async function main() {
<link rel="stylesheet" href="w3.css">
</head>
<body class="w3-grid" style="background-color: #fff; gap:8px;grid-template-columns:repeat(auto-fit, minmax(4in,1fr))">
${
data.map(x => `
${data
.map(
(x) => `
<div class="w3-card-4">
<header class="w3-container w3-center">
<h1>${markdown(x.title)}</h1>
@@ -169,11 +170,12 @@ async function main() {
<p>${markdown(x.description)}</p>
</div>
</div>
`).join('\n')
}
`
)
.join('\n')}
</body>
</html>
`);
}
main();
main();

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
${BODY}
</body>
</html>
</html>