Версия 1.2.9 Подпись под статьей об авторах перенесена - теперь до галереи.

This commit is contained in:
anibilag 2025-11-05 16:51:03 +03:00
parent 4497c5895e
commit 1abdd57f8f
2 changed files with 36 additions and 30 deletions

View File

@ -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
Sitemap: https://xn--80aefrggdxongffce6aw8g.xn--p1ai/sitemap.xml
Host: https://xn--80aefrggdxongffce6aw8g.xn--p1ai

View File

@ -205,6 +205,34 @@ export function ArticlePage() {
</div>
</div>
{/* Авторы */}
<div className="text-sm text-gray-600 text-right">
{(() => {
const photographer = articleData.authors?.find(a => a.role === 'PHOTOGRAPHER');
return (
<>
{writerAuthors && (
<p className="text-base font-medium text-gray-900">
{writerAuthors.map((a, i) => (
<span key={a.author.id}>
{a.author.displayName}
{i < writerAuthors.length - 1 ? ', ' : ''}
</span>
))}
</p>
)}
{photographer && (
<p className="text-base font-medium text-gray-900">
<span className="font-semibold">Фото:</span>{' '}
{photographer.author.displayName}
</p>
)}
</>
);
})()}
</div>
{/* Photo Gallery */}
{articleData.gallery && articleData.gallery.length > 0 && (
<div className="mb-8">
@ -221,34 +249,6 @@ export function ArticlePage() {
</div>
)}
{/* Авторы */}
<div className="text-sm text-gray-600 text-right">
{(() => {
const photographer = articleData.authors?.find(a => a.role === 'PHOTOGRAPHER');
return (
<>
{writerAuthors && (
<p className="text-base font-medium text-gray-900">
{writerAuthors.map((a, i) => (
<span key={a.author.id}>
{a.author.displayName}
{i < writerAuthors.length - 1 ? ', ' : ''}
</span>
))}
</p>
)}
{photographer && (
<p className="text-base font-medium text-gray-900">
<span className="font-semibold">Фото:</span>{' '}
{photographer.author.displayName}
</p>
)}
</>
);
})()}
</div>
<ReactionButtons
likes={articleData.likes}
dislikes={articleData.dislikes}