Skip to content

Commit

Permalink
fix(article): logic for blocked title
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Sep 29, 2024
1 parent fdbff12 commit d5c5177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/article/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ function ArticlePage() {
<title>
{article.status === 'BLOCKED'
? t`Cofacts`
: ellipsis(article.text, { wordCount: 100 })}{' '}
| {t`Cofacts`}
: `${ellipsis(article.text, { wordCount: 100 })}
| ${t`Cofacts`}`}
</title>
{/* Don't let search engines index blocked spam */ article.status ===
'BLOCKED' && <meta name="robots" content="noindex, nofollow" />}
Expand Down

0 comments on commit d5c5177

Please sign in to comment.