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"> <article class="article">
<header class="article-header"> <header class="article-header">
<h1 class="article-title"> <h1 class="article-title">
<Html html={story.title} /> <Html html={story.title} text={story.title} />
</h1> </h1>
{#if story.url} {#if story.url}
<div>source: <a class="article-source" href={story.url}>{host}</a></div> <div>source: <a class="article-source" href={story.url}>{host}</a></div>

View File

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

View File

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