diff --git a/src/app.d.ts b/src/app.d.ts index 189ca86..9dfaddb 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -18,13 +18,18 @@ declare global { type MdsvexResolver = () => Promise; + type BlogPostType = 'article' | 'update' | 'event'; + interface BlogPost { slug: string; + type?: BlogPostType; title: string; thumbnail?: string; thumbnailAlt?: string; date?: string; dateChanged?: string; + dateEventFrom?: string; + dateEventTo?: string; description: string; publisher: string; published?: boolean; diff --git a/src/lib/components/BlogCard.svelte b/src/lib/components/BlogCard.svelte index 1d31599..21e79d0 100644 --- a/src/lib/components/BlogCard.svelte +++ b/src/lib/components/BlogCard.svelte @@ -7,18 +7,25 @@ @@ -44,6 +46,12 @@ {#if data.blogPost.dateChanged} {/if} +
+ + + {blogPostTypeToString(type)} + +
{#each authors as author}