mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/ChangelogEntry: expect date to always exist
This commit is contained in:
parent
534af330ce
commit
4fab0d3fb8
2 changed files with 2 additions and 4 deletions
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue