trim whitespace from title

closes #6
This commit is contained in:
Christian Tietze
2019-07-06 07:42:34 +02:00
committed by GitHub
parent 7193d35275
commit e792e146ea
+1 -1
View File
@@ -209,7 +209,7 @@ function getPostSlug(post) {
}
function getPostTitle(post) {
return post.title[0];
return post.title[0].trim();
}
function getPostDate(post) {