From b3db1527b8fecc7a34989191255117b43e031230 Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 11 Apr 2022 21:28:32 +0200 Subject: [PATCH] Update --- src/lib/Avatar.svelte | 5 ++++- src/lib/Link.svelte | 6 ++++++ src/routes/index.svelte | 4 +++- src/routes/lide.svelte | 16 +++++++++++++--- src/routes/udalosti.svelte | 11 +++++++++-- 5 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 src/lib/Link.svelte diff --git a/src/lib/Avatar.svelte b/src/lib/Avatar.svelte index 8a9111f..99d5ce5 100644 --- a/src/lib/Avatar.svelte +++ b/src/lib/Avatar.svelte @@ -5,8 +5,11 @@ export let customSize = null; import SvelteMarkdown from 'svelte-markdown'; + import Link from '$lib/Link.svelte'; import { page } from '$app/stores'; + const renderers = { link: Link } + let imagesRoot = 'https://spec.utxo.cz/22/photos' /*if ($page.url.hostname === 'localhost') { imagesRoot = 'http://localhost:8000/22/photos' @@ -78,7 +81,7 @@ {speaker.name}
{speaker.name} {country}
{#if speaker.bio || speaker.orgs} -
+
{/if} {/if} diff --git a/src/lib/Link.svelte b/src/lib/Link.svelte new file mode 100644 index 0000000..74a08fb --- /dev/null +++ b/src/lib/Link.svelte @@ -0,0 +1,6 @@ + + + diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 11e8155..6ba6429 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -6,6 +6,8 @@ import { bundle, userData } from '$lib/stores.js'; import Avatar from '$lib/Avatar.svelte'; import SvelteMarkdown from 'svelte-markdown'; + import Link from '$lib/Link.svelte'; + const renderers = { link: Link } let onlyLead = true let onlyLeadPreview = false @@ -124,7 +126,7 @@ Zažijte mysteriózní atmosféru komplexu na 1.ročníku konference UTXO.22. Č {#each $bundle.spec.faqs as item}
{item.question}
- +
{/each} diff --git a/src/routes/lide.svelte b/src/routes/lide.svelte index 8f5dec0..9a8370e 100644 --- a/src/routes/lide.svelte +++ b/src/routes/lide.svelte @@ -3,7 +3,6 @@