From 11934c53663201c9da75d3453c27a9991ec6510c Mon Sep 17 00:00:00 2001 From: Th0rn0 Date: Tue, 21 May 2024 09:46:39 +0100 Subject: [PATCH] seo --- src/resources/views/events/show.blade.php | 2 +- src/resources/views/layouts/_partials/_news/short.blade.php | 2 +- src/resources/views/news/show.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resources/views/events/show.blade.php b/src/resources/views/events/show.blade.php index 36e2f4c93..171be69a1 100644 --- a/src/resources/views/events/show.blade.php +++ b/src/resources/views/events/show.blade.php @@ -566,4 +566,4 @@ function pickSeat(seating_plan_slug, seat) @endsection -@seo(['description' => $event->desc_short]) \ No newline at end of file +@seo(['description' => strip_tags(substr($event->desc_long, 0, 1000))]) \ No newline at end of file diff --git a/src/resources/views/layouts/_partials/_news/short.blade.php b/src/resources/views/layouts/_partials/_news/short.blade.php index 4558c8ef7..3dc9e3909 100644 --- a/src/resources/views/layouts/_partials/_news/short.blade.php +++ b/src/resources/views/layouts/_partials/_news/short.blade.php @@ -1,7 +1,7 @@

{{ $newsArticle->title }}


- {!! strip_tags(substr($newsArticle->article, strpos($newsArticle->article, "article, "

")+4)) !!} + {{ substr($newsArticle->article, 0, 2000) }}...

Read More...


diff --git a/src/resources/views/news/show.blade.php b/src/resources/views/news/show.blade.php index 41e369e52..9d7940856 100644 --- a/src/resources/views/news/show.blade.php +++ b/src/resources/views/news/show.blade.php @@ -56,4 +56,4 @@ @endsection -@seo(['description' => strip_tags(substr($newsArticle->article, strpos($newsArticle->article, "article, "

")+4))]) \ No newline at end of file +@seo(['description' => strip_tags(substr($newsArticle->article, 0, 1000))]) \ No newline at end of file