Skip to content

Commit

Permalink
Fixed leading and trailing whitespaces contributing to the title limit
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter committed Jun 11, 2024
1 parent 384bddf commit 2fd1889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
function updateTitle(value) {
const rawTitle = value.split('\n', 1)[0];
if (rawTitle === '') { return; }
const truncatedTitle = truncate(rawTitle, 30);
const truncatedTitle = truncate(rawTitle.trim(), 30);
document.title = truncatedTitle + ' | ' + '{{ site.tagline }}';
}

Expand Down

0 comments on commit 2fd1889

Please sign in to comment.