From ea2cac77bbb0b01b42e4c50acf733056141fcd83 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Nov 2021 19:32:06 +0300 Subject: pick up default site.settings values from site.github Also, use the default filter more, it's much more convenient. --- _includes/common/navbar.html | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to '_includes/common/navbar.html') diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html index 47ebe6f..8640633 100644 --- a/_includes/common/navbar.html +++ b/_includes/common/navbar.html @@ -7,7 +7,14 @@ - {{ site.settings.author.name }} + {% assign author_name = site.settings.author.name %} + {% unless author_name %} + {% if site.github %} + {% assign author_name = site.github.owner_name %} + {% endif %} + {% endunless %} + {% assign author_name = author_name | default: 'John Doe' %} + {{ author_name }} -- cgit v1.2.3