aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/sidebar.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-11-04 20:30:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-11-05 13:01:33 +0300
commite3f3e83bc9ab7a89d963233fa8b94340638bb96f (patch)
treefde62c49588400c201fbeec84c1dadc66bfa7bbc /_includes/common/sidebar.html
parentpick up default site.settings values from site.github (diff)
downloadjekyll-theme-e3f3e83bc9ab7a89d963233fa8b94340638bb96f.tar.gz
jekyll-theme-e3f3e83bc9ab7a89d963233fa8b94340638bb96f.zip
sidebar: use site.settings.navbar.github settings
Diffstat (limited to '')
-rw-r--r--_includes/common/sidebar.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html
index 929cabe..825f73e 100644
--- a/_includes/common/sidebar.html
+++ b/_includes/common/sidebar.html
@@ -14,7 +14,10 @@
<p>{{ project_desc }}</p>
<div class="list-group wide-enough">
{% if site.github %}
- <a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span>&nbsp;GitHub repository</a>
+ {% assign github_link = site.settings.navbar.github.link | default: 'GitHub' %}
+ {% assign github_icon = site.settings.navbar.github.icon | default: 'globe' %}
+ {% capture github_icon %}<span class="glyphicon glyphicon-{{ github_icon }}"></span>&nbsp;{% endcapture %}
+ <a class="list-group-item" href="{{ site.github.repository_url }}" target="_blank">{{ github_icon }}{{ github_link }}</a>
{% endif %}
{% assign author_email = site.settings.author.email | default: 'John.Doe@example.com' %}
<a class="list-group-item" href="mailto:{{ author_email }}"><span class="glyphicon glyphicon-envelope"></span>&nbsp;{{ author_email }}</a>