feat: added publications
This commit is contained in:
parent
1e2ad78314
commit
e042996b55
8 changed files with 148 additions and 0 deletions
|
|
@ -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' },
|
||||
];
|
||||
|
|
|
|||
40
src/lib/components/publications/PublicationListItem.svelte
Normal file
40
src/lib/components/publications/PublicationListItem.svelte
Normal 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>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue