diff --git a/packages/viewer/src/components/Shared/Cite.svelte b/packages/viewer/src/components/Shared/Cite.svelte index 73fa29d..cc14054 100644 --- a/packages/viewer/src/components/Shared/Cite.svelte +++ b/packages/viewer/src/components/Shared/Cite.svelte @@ -3,7 +3,7 @@ import CopyButton from './CopyButton.svelte' let url = '' let markdown = '' - export let title: string | undefined = undefined + export let title: string = "π-Base, a community database of topological counterexamples." onMount(() => { url = window.location.href markdown = `[${title}](${url})` @@ -15,12 +15,7 @@ Cite as: The pi-Base Community. - {#if title} - {title}. - {:else} - π-Base, a community database of topological counterexamples. - {/if} + {title}. Available at: {url} (Accessed: {new Date().toISOString().split('T')[0]}).