Skip to content

Commit 2fd1889

Browse files
committed
Fixed leading and trailing whitespaces contributing to the title limit
1 parent 384bddf commit 2fd1889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
function updateTitle(value) {
108108
const rawTitle = value.split('\n', 1)[0];
109109
if (rawTitle === '') { return; }
110-
const truncatedTitle = truncate(rawTitle, 30);
110+
const truncatedTitle = truncate(rawTitle.trim(), 30);
111111
document.title = truncatedTitle + ' | ' + '{{ site.tagline }}';
112112
}
113113

0 commit comments

Comments
 (0)