From 937c2703df1dde8a7318cfa9b7318a0bf202b4cc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 12 Oct 2021 04:33:36 +0300 Subject: header: short title for the main page --- _includes/common/header.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '_includes') diff --git a/_includes/common/header.html b/_includes/common/header.html index f905e37..81d7cbf 100644 --- a/_includes/common/header.html +++ b/_includes/common/header.html @@ -6,10 +6,14 @@ {% if site.settings.project.name %} - {{ page.title }} - {{ site.settings.project.name }} - {{ site.settings.author.name }} + {% capture title %}{{ site.settings.project.name }} - {{ site.settings.author.name }}{% endcapture %} {% else %} - {{ page.title }} - {{ site.settings.author.name }} + {% capture title %}{{ site.settings.author.name }}{% endcapture %} {% endif %} + {% if page.url != '/' %} + {% capture title %}{{ page.title }} - {{ title }}{% endcapture %} + {% endif %} + {{ title }}