From 1abdd57f8f3f22c9b0036452733f53a7f9e31053 Mon Sep 17 00:00:00 2001 From: anibilag Date: Wed, 5 Nov 2025 16:51:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=201.2.9=20?= =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D1=8C=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=20=D1=81=D1=82=D0=B0=D1=82=D1=8C=D0=B5=D0=B9=20=D0=BE=D0=B1=20?= =?UTF-8?q?=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B0=D1=85=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D0=B0=20-=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B4=D0=BE=20=D0=B3=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/robots.txt | 10 +++++-- src/pages/ArticlePage.tsx | 56 +++++++++++++++++++-------------------- 2 files changed, 36 insertions(+), 30 deletions(-) diff --git a/public/robots.txt b/public/robots.txt index 78c643e..03a2b64 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,9 +1,15 @@ User-agent: * Allow: / +Allow: /article/ -# Disallow admin routes Disallow: /admin/ Disallow: /admin/* +Disallow: /search +Disallow: /search* +Disallow: /*?page= +Disallow: /*?category= # Sitemap -Sitemap: https://xn--80aefrggdxongffce6aw8g.xn--p1ai/sitemap.xml \ No newline at end of file +Sitemap: https://xn--80aefrggdxongffce6aw8g.xn--p1ai/sitemap.xml + +Host: https://xn--80aefrggdxongffce6aw8g.xn--p1ai \ No newline at end of file diff --git a/src/pages/ArticlePage.tsx b/src/pages/ArticlePage.tsx index d7b0b1e..d3f0d35 100644 --- a/src/pages/ArticlePage.tsx +++ b/src/pages/ArticlePage.tsx @@ -205,6 +205,34 @@ export function ArticlePage() { + {/* Авторы */} +
+ {(() => { + const photographer = articleData.authors?.find(a => a.role === 'PHOTOGRAPHER'); + + return ( + <> + {writerAuthors && ( +

+ {writerAuthors.map((a, i) => ( + + {a.author.displayName} + {i < writerAuthors.length - 1 ? ', ' : ''} + + ))} +

+ )} + {photographer && ( +

+ Фото:{' '} + {photographer.author.displayName} +

+ )} + + ); + })()} +
+ {/* Photo Gallery */} {articleData.gallery && articleData.gallery.length > 0 && (
@@ -221,34 +249,6 @@ export function ArticlePage() {
)} - {/* Авторы */} -
- {(() => { - const photographer = articleData.authors?.find(a => a.role === 'PHOTOGRAPHER'); - - return ( - <> - {writerAuthors && ( -

- {writerAuthors.map((a, i) => ( - - {a.author.displayName} - {i < writerAuthors.length - 1 ? ', ' : ''} - - ))} -

- )} - {photographer && ( -

- Фото:{' '} - {photographer.author.displayName} -

- )} - - ); - })()} -
-