fix: ghost stylings

This commit is contained in:
Damillora 2022-07-24 05:50:08 +07:00
parent 6d8981ff57
commit 4aca265fd1
1 changed files with 10 additions and 2 deletions

View File

@ -34,6 +34,8 @@
import Container from '@damillora/plachta/components/Container/Container.svelte';
import PostRelated from '@damillora/plachta/components/Post/PostRelated.svelte';
import PostCard from '@damillora/plachta/components/PostCard/PostCard.svelte';
import GhostStyle from '@damillora/plachta/components/Base/GhostStyle.svelte';
import type { Load } from '@sveltejs/kit';
import {
browseNextPost,
@ -74,13 +76,19 @@
reading_time={`${post.reading_time} min read`}
/>
<PostMain>
{@html post.html}
<GhostStyle>
{@html post.html}
</GhostStyle>
<svelte:fragment slot="comments" />
</PostMain>
<PostNavigator prev_post={prevPost} next_post={nextPost} />
</Post>
<PostRelated name={post.primary_tag.name} url={post.primary_tag.utl} accent_color={post.primary_tag.accent_color}>
<PostRelated
name={post.primary_tag.name}
url={post.primary_tag.utl}
accent_color={post.primary_tag.accent_color}
>
{#each relatedPost as post}
<PostCard
title={post.title}