Skip to content

Commit

Permalink
Merge pull request #665 from akshit-arora/feat/limit-title-length
Browse files Browse the repository at this point in the history
Limit the answers length to 50 characters in page title
  • Loading branch information
nunomaduro authored Sep 24, 2024
2 parents a3c7500 + 5fd655f commit 1df8c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/layouts/components/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
/>

@if ($answer)
<title>{{ $question->to->name }}: "{!! $answer !!}" / Pinkary</title>
<title>{{ $question->to->name }}: "{!! Str::limit($answer, 50, preserveWords: true) !!}" / Pinkary</title>
<meta
property="og:title"
content='{{ $ogTitle }}'
Expand Down

0 comments on commit 1df8c5c

Please sign in to comment.