From fac641c248f9b8b5ab6926184fd634c40577a428 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Wed, 21 Jul 2021 01:50:45 +0200 Subject: [PATCH] masthead: Prefer tagline over description and add defaults for title. SEO usually prefers a slightly longer description, so jekyll-seo-tag allows to separate a short tagline from a longer description. --- _includes/masthead.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/masthead.html b/_includes/masthead.html index 286b69f724b..eb769e3edfa 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -8,11 +8,11 @@ {% assign page_image = page.image.path | default: page.image %} {% unless page_image %} {% if page.url == '/' %} -

{{ site.title }}

+

{{ site.title | default: site.github.repository_name }}

{% else %} -
{{ site.title }}
+
{{ site.title | default: site.github.repository_name }}
{% endif %} -

{{ site.description }}

+

{{ site.tagline | default: site.description | default: site.github.project_tagline }}

{% endunless %}