This commit is contained in:
Benjamin Takats
2023-01-25 16:01:31 +01:00
parent 49cb8607a1
commit dadf334fcf

View File

@@ -22,7 +22,7 @@ class InternArticleView extends Component
return view('livewire.news.intern-article-view')->layout('layouts.app', [ return view('livewire.news.intern-article-view')->layout('layouts.app', [
'SEOData' => new SEOData( 'SEOData' => new SEOData(
title: $this->libraryItem->name, title: $this->libraryItem->name,
description: $this->libraryItem->excerpt ?? __('Here we post important news that is relevant for everyone.'), description: strip_tags($this->libraryItem->excerpt) ?? __('Here we post important news that is relevant for everyone.'),
author: $this->libraryItem->lecturer->name, author: $this->libraryItem->lecturer->name,
image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'), image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'),
published_time: Carbon::parse($this->libraryItem->created_at), published_time: Carbon::parse($this->libraryItem->created_at),