placehold.
This commit is contained in:
parent
8c40124e07
commit
cee104ea06
|
@ -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>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user