--- 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 { post: any; pageInfo?: any; } const { post, pageInfo } = Astro.props; --- {post ? (

{post.title}

{post.secondaryTitle &&

{post.secondaryTitle}

} {post.featuredImage?.node?.sourceUrl && ( )} {post.content &&
}
) : (
Новость не найдена
)} {/* Блок с тегами */} {post.tags?.nodes && post.tags.nodes.length > 0 && (
Метки:
{post.tags.nodes.map((tag) => ( {tag.name} ))}
)}