From 060bc4149a71676a7e096549cde4f4244e5ad52f Mon Sep 17 00:00:00 2001 From: Michael Lynch Date: Sun, 3 Mar 2019 16:20:09 -0500 Subject: [PATCH] Adding default title tag Currently, if page.collectionpage and page.title are both unset, the page title is set to " - Whatever Blog Title". This is undesirable, so if neither variable is set, the title tag should just be "Whatever Blog Title". --- _layouts/default.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 22a3e23..2226d37 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,8 +5,10 @@ {% if page.collectionpage %} {% assign collectiondata = site.collections | where: "label", page.collectionpage | first %} {{ collectiondata.title }} - {{ site.title }} - {% else %} + {% elsif page.title %} {{ page.title }} - {{ site.title }} + {% else %} + {{ site.title }} {% endif %}