web/ChangelogEntry: expect date to always exist

This commit is contained in:
dumbmoron 2024-07-21 11:31:55 +00:00
parent 534af330ce
commit 4fab0d3fb8
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -27,9 +27,7 @@
<div id="changelog-header" class:no-padding={!banner}> <div id="changelog-header" class:no-padding={!banner}>
<div class="changelog-info"> <div class="changelog-info">
<div class="changelog-version">{version}</div> <div class="changelog-version">{version}</div>
{#if date}
<div class="changelog-date">{formatDate(date)}</div> <div class="changelog-date">{formatDate(date)}</div>
{/if}
</div> </div>
<h1 class="changelog-title">{title}</h1> <h1 class="changelog-title">{title}</h1>
</div> </div>

View file

@ -2,7 +2,7 @@ import type { SvelteComponent } from "svelte"
export interface ChangelogMetadata { export interface ChangelogMetadata {
title: string, title: string,
date: string date: string,
banner?: { banner?: {
file: string, file: string,
alt: string alt: string