fixes more menu
This commit is contained in:
parent
a64916f445
commit
e3a6eccd02
2 changed files with 2 additions and 15 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
import { getTime } from './time';
|
import { getTime } from './time';
|
||||||
|
|
||||||
export let story;
|
export let story;
|
||||||
export let withSection = false;
|
|
||||||
|
|
||||||
$: thumbnail = story.thumbnail;
|
$: thumbnail = story.thumbnail;
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -11,17 +10,8 @@
|
||||||
<div class="story-card">
|
<div class="story-card">
|
||||||
<a href="{normalizeUrl(story.canonical_url)}">
|
<a href="{normalizeUrl(story.canonical_url)}">
|
||||||
<div class="story-text" class:has-thumbnail="{thumbnail}">
|
<div class="story-text" class:has-thumbnail="{thumbnail}">
|
||||||
{#if withSection}
|
|
||||||
<a href="{normalizeUrl(story.primary_section.id)}">
|
|
||||||
<span class="label">{story.primary_section.name}</span>
|
|
||||||
</a>
|
|
||||||
{/if}
|
|
||||||
<span>{story.title}</span>
|
<span>{story.title}</span>
|
||||||
{#if !withSection}
|
<time datetime="{story.display_time}">{getTime(story.display_time)}</time>
|
||||||
<time datetime="{story.display_time}"
|
|
||||||
>{getTime(story.display_time)}</time
|
|
||||||
>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
{#if thumbnail}
|
{#if thumbnail}
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,7 @@
|
||||||
<ul class="story-list">
|
<ul class="story-list">
|
||||||
{#each stories as story}
|
{#each stories as story}
|
||||||
<li class="story-item">
|
<li class="story-item">
|
||||||
<StoryCard
|
<StoryCard {story} />
|
||||||
{story}
|
|
||||||
withSection="{$activeSection === 'more'}"
|
|
||||||
/>
|
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue