mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
robot
This commit is contained in:
1 parent
487bd14b04
commit
a173d0ffa6
9 files changed
+195
-25
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { useParams } from "react-router-dom";
|
||||
import { Helmet } from "react-helmet";
|
||||
|
||||
import extLink from "@/shared/assets/images/extLink.svg";
|
||||
import views from "@/shared/assets/images/views.svg";
|
||||
import {SkeletonPost} from "@/shared/Components/SkeletonPost/SkeletonPost";
|
||||
import { SkeletonPost } from "@/shared/Components/SkeletonPost/SkeletonPost";
|
||||
|
||||
import "./NewsItem.styles.scss";
|
||||
import { useNewsById } from "@/modules/news/hooks/useNewsById";
|
||||
@@ -31,7 +32,19 @@ function NewsItem() {
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
if (isError) return <center>Ошибка при загрузке новости</center>;
|
||||
if (isError)
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>
|
||||
Ошибка загрузки новости | СКБ "Компьютерное инновационное
|
||||
творчество"
|
||||
</title>
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
</Helmet>
|
||||
<center>Ошибка при загрузке новости</center>
|
||||
</>
|
||||
);
|
||||
|
||||
const newsUrl = `${vkWallUrl}_${newsID}`;
|
||||
|
||||
@@ -39,6 +52,26 @@ function NewsItem() {
|
||||
<>
|
||||
{news && (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>
|
||||
{news.heading || "Новость"} | СКБ "Компьютерное инновационное
|
||||
творчество"
|
||||
</title>
|
||||
<meta
|
||||
name="description"
|
||||
content={
|
||||
news.text?.[0]?.replace(/<[^>]*>/g, "").slice(0, 160) ||
|
||||
"Новость СКБ 'Компьютерное инновационное творчество' ИКТИБ ЮФУ"
|
||||
}
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content={`СКБ, новости, ${
|
||||
news.heading || ""
|
||||
}, ИКТИБ, ЮФУ, студенческие проекты, инновации`}
|
||||
/>
|
||||
<meta name="robots" content="index,follow" />
|
||||
</Helmet>
|
||||
<PageHeader className="header">
|
||||
<h1>{news.heading}</h1>
|
||||
</PageHeader>
|
||||
|
||||
Reference in new issue
Block a user