library with grid

This commit is contained in:
Benjamin Takats
2023-01-20 16:35:16 +01:00
parent ab95fc2cda
commit 2b0a8603f7
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ class InternArticleView extends Component
public function render()
{
if ($this->libraryItem->type === 'markdown_article') {
$description = $this->libraryItem->excerpt ?? __('An entry in the library of Einundzwanzig.');
} else {
$description = $this->libraryItem->excerpt ?? __('Here we post important news that is relevant for everyone.');
}
return view('livewire.news.intern-article-view')->layout('layouts.app', [
'SEOData' => new SEOData(
title: $this->libraryItem->name,