Skip to content

Commit

Permalink
seo
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed May 21, 2024
1 parent 26f7044 commit 11934c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/resources/views/events/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,4 +566,4 @@ function pickSeat(seating_plan_slug, seat)

@endsection

@seo(['description' => $event->desc_short])
@seo(['description' => strip_tags(substr($event->desc_long, 0, 1000))])
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="news-post">
<h2 class="news-post-title"><a href="/news/{{ $newsArticle->slug }}">{{ $newsArticle->title }}</a></h2>
<br>
{!! strip_tags(substr($newsArticle->article, strpos($newsArticle->article, "<p"), strpos($newsArticle->article, "</p>")+4)) !!}
{{ substr($newsArticle->article, 0, 2000) }}...
<br><br>
<p><a href="/news/{{ $newsArticle->slug }}">Read More...</a></p>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/news/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@

@endsection

@seo(['description' => strip_tags(substr($newsArticle->article, strpos($newsArticle->article, "<p"), strpos($newsArticle->article, "</p>")+4))])
@seo(['description' => strip_tags(substr($newsArticle->article, 0, 1000))])

0 comments on commit 11934c5

Please sign in to comment.