video strani: iz izpisa odstranjeni hashtagi in stalni promo odstavek (bil je enak na vseh straneh), link do clanka je zdaj prava povezava in ne golo besedilo; VideoObject description uporablja ociscen opis
This commit is contained in:
@@ -18,6 +18,8 @@ export interface YtVideo {
|
||||
durationS: number;
|
||||
teaser: string;
|
||||
description: string;
|
||||
descriptionClean?: string;
|
||||
articleUrl?: string | null;
|
||||
chapters: { t: string; label: string }[];
|
||||
tags: string[];
|
||||
previewUrl: string | null;
|
||||
@@ -141,11 +143,21 @@ export default function VideoDetailPage() {
|
||||
</section>
|
||||
)}
|
||||
|
||||
{v.description && (
|
||||
{v.articleUrl && (
|
||||
<a
|
||||
href={v.articleUrl}
|
||||
className="mt-3 inline-flex items-center gap-2 text-sm font-semibold text-primary hover:underline"
|
||||
data-testid="link-article"
|
||||
>
|
||||
Ganzer Artikel auf folx.tv
|
||||
</a>
|
||||
)}
|
||||
|
||||
{(v.descriptionClean || v.description) && (
|
||||
<section className="mt-8">
|
||||
<h2 className="text-lg font-bold text-foreground mb-2">Zum Video</h2>
|
||||
<p className="whitespace-pre-line text-sm text-muted-foreground leading-relaxed">
|
||||
{v.description.replace(/\n{3,}/g, "\n\n")}
|
||||
{(v.descriptionClean || v.description).replace(/\n{3,}/g, "\n\n")}
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user