added new blog post

This commit is contained in:
2026-01-31 20:24:26 +01:00
parent 01e455d3bf
commit 21059a4d2e
7 changed files with 39 additions and 6 deletions

View File

@@ -7,10 +7,14 @@
let entries: GalleryEntry[] = posts.map(mapEntries);
function mapEntries(entry: BlogPostLink, index: number): GalleryEntry {
let banner = "";
if (entry.post.banner && entry.post.banner !== "") {
banner = `/blog/${entry.key}/${entry.post.banner}`;
}
return {
title: `${entry.post.title}`,
subtitle: `#${posts.length - index} // ${entry.post.date}, ${entry.post.time}`,
img: `/blog/${entry.key}/${entry.post.banner}`,
img: banner,
link: `/blog/${entry.key}/`,
imgAlt: `Preview image for ${entry.post.title}`,
};