From 2fd18891077607de3f20dc7ec001ccbccce88273 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <5748627+revolter@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:04:59 +0300 Subject: [PATCH] Fixed leading and trailing whitespaces contributing to the title limit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index aa66033..69d01f8 100644 --- a/index.html +++ b/index.html @@ -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 }}'; }