Skip to content

Commit

Permalink
Fixed citation button
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-Abram committed Sep 6, 2024
1 parent a178313 commit 1680805
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/viewer/src/components/Shared/Cite.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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})`
Expand All @@ -15,12 +15,7 @@
Cite as:
<span class="text-muted">
The pi-Base Community.
{#if title}
<cite>{title}.</cite>
{:else}
<cite>π-Base, a community database of topological counterexamples.</cite
>
{/if}
<cite>{title}.</cite>
Available at: {url}
(Accessed: {new Date().toISOString().split('T')[0]}).
</span>
Expand Down

0 comments on commit 1680805

Please sign in to comment.