From 07d814b6637987359a114d9eec92bfeb61b382b6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Apr 2018 03:00:52 +0000 Subject: Site title --- _includes/head.html | 59 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 23 deletions(-) (limited to '_includes') diff --git a/_includes/head.html b/_includes/head.html index 035aad2..ec6a599 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,39 +1,52 @@ + +{% if page.title %} + {% capture title %} + {{ page.title }} · {{ site.title }} + {% endcapture %} +{% else %} + {% assign title = site.title %} +{% endif %} + + +{% if page.description %} + {% assign description = page.description %} +{% else %} + {% assign description = site.description %} +{% endif %} + - - + - + - - {% if page.id == "index" %} - {{ site.title | smartify | strip_html | normalize_whitespace }} - {% else %} - {{ page.title | smartify | strip_html | normalize_whitespace }} · - {{ site.title | smartify | strip_html | normalize_whitespace }} - {% endif %} - + + + + + - - - - + + + + {{ title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} - - + - - - + + - - - + + + + + + -- cgit v1.2.3