feat: added publications

This commit is contained in:
Alexander Daichendt 2023-11-02 14:26:00 +01:00
parent 1e2ad78314
commit e042996b55
8 changed files with 148 additions and 0 deletions

View file

@ -5,6 +5,7 @@
const NAV_ITEMS = [
{ href: '/', label: 'Home' },
{ href: '/blog', label: 'Blog' },
{ href: '/publications', label: 'Publications' },
{ href: '/projects', label: 'Projects' },
{ href: '/contact', label: 'Contact' },
];

View file

@ -0,0 +1,40 @@
<script lang="ts">
export let title: string;
export let authors: string[];
export let conference: string;
export let pdf: string;
</script>
<li>
<a class="main" href={pdf}>
<span>
{#each authors as author, i}
{#if i != authors.length && i != 0}
,
{/if}
{#if author == 'Alexander Daichendt'}
<b>{author}</b>
{:else}
{author}
{/if}
{/each}
</span>
{title}
{conference}
</a>
</li>
<style>
.main {
display: flex;
flex-direction: column;
}
a {
text-decoration: none;
color: inherit;
margin-bottom: 8px;
}
</style>

View file

@ -46,3 +46,17 @@ export interface PageData {
keywords: string[];
};
}
export interface PublicationFrontmatter {
created: string;
title: string;
authors: string[];
conference: string;
pdf: string; // url to pdf
keywords: string[];
hidden: boolean;
}
export interface PublicationMeta extends PublicationFrontmatter {
href: string;
}