diff --git a/index.html b/index.html index 69d01f8..1960d7a 100644 --- a/index.html +++ b/index.html @@ -105,10 +105,12 @@ } function updateTitle(value) { + document.title = '{{ site.tagline }}'; + const rawTitle = value.split('\n', 1)[0]; if (rawTitle === '') { return; } const truncatedTitle = truncate(rawTitle.trim(), 30); - document.title = truncatedTitle + ' | ' + '{{ site.tagline }}'; + document.title = truncatedTitle + ' | ' + document.title; } function truncate(string, limit) {