From 513dd2010502a4519db11bf6f54584047b024949 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 2 Nov 2021 20:57:05 +0300 Subject: navbar: add a GitHub link --- _includes/common/navbar.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '_includes/common/navbar.html') diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html index 7e5fa4e..2002bd0 100644 --- a/_includes/common/navbar.html +++ b/_includes/common/navbar.html @@ -44,6 +44,24 @@
  • {{ icon }}{{ link }}
  • {% endif %} {% endfor %} + + {% if site.github %} + {% assign github_link = 'GitHub' %} + {% assign github_icon = 'globe' %} + {% if site.settings.navbar.github %} + {% if site.settings.navbar.github.link %} + {% assign github_link = site.settings.navbar.github.link %} + {% endif %} + {% if site.settings.navbar.github.icon %} + {% assign github_icon = site.settings.navbar.github.icon %} + {% endif %} + {% endif %} + {% capture github_icon %} {% endcapture %} + {% if site.settings.navbar.github == false %} + {% else %} +
  • {{ github_icon }}{{ github_link | upcase }}
  • + {% endif %} + {% endif %} -- cgit v1.2.3