fix: ghost stylings

This commit is contained in:
Damillora 2022-07-24 05:50:08 +07:00
parent 6d8981ff57
commit 4aca265fd1

View File

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