add emmed

This commit is contained in:
Profile Profile
2026-03-14 18:01:30 +03:00
parent 684a7bffbf
commit f66c3baf8d
10 changed files with 338 additions and 235 deletions

View File

@@ -3,6 +3,9 @@ import { stripHtml } from '@/utils/htmlhelpers';
import Author from '@components/AuthorDisplay.astro';
import Subscribe from '@components/SubscribePost.astro';
import ShareButtons from '@components/ShareButtons.astro';
import EmbeddedPost from '@components/EmbeddedPost.astro'; // шаблоны ссылок на статьи
interface Props {
@@ -56,14 +59,15 @@ const { post, pageInfo } = Astro.props;
)}
</figure>
)}
{post.content && <div set:html={post.content} />}
{post.content && <div class="article-content" set:html={post.content} />}
<Subscribe />
</article>
<ShareButtons url={post.uri} title={post.title} />
<EmbeddedPost />
</div>
) : (
<div>Новость не найдена</div>