placehold.

This commit is contained in:
Jason Schwarzenberger 2020-12-02 14:48:31 +13:00
parent 8c40124e07
commit cee104ea06
3 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,7 @@
<article class="article">
<header class="article-header">
<h1 class="article-title">
<Html html={story.title} />
<Html html={story.title} text={story.title} />
</h1>
{#if story.url}
<div>source: <a class="article-source" href={story.url}>{host}</a></div>

View File

@ -3,6 +3,7 @@
import { onMount } from "svelte";
export let html;
export let text;
let purify;
onMount(() => {
@ -12,4 +13,4 @@
{#if purify}
{@html html}
{:else}{html}{/if}
{:else if text}{text}{/if}

View File

@ -43,7 +43,7 @@
class="story-icon"
style="height: 1rem; width: 1rem;" />
<a class="story-title" rel="prefetch" href="/{story.id}">
<Html html={story.title} />
<Html html={story.title} text={story.title} />
</a>
<a
class="story-source"