diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-04 20:30:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-05 13:01:33 +0300 |
commit | e3f3e83bc9ab7a89d963233fa8b94340638bb96f (patch) | |
tree | fde62c49588400c201fbeec84c1dadc66bfa7bbc /_includes/common/sidebar.html | |
parent | pick up default site.settings values from site.github (diff) | |
download | jekyll-theme-e3f3e83bc9ab7a89d963233fa8b94340638bb96f.tar.gz jekyll-theme-e3f3e83bc9ab7a89d963233fa8b94340638bb96f.zip |
sidebar: use site.settings.navbar.github settings
Diffstat (limited to '_includes/common/sidebar.html')
-rw-r--r-- | _includes/common/sidebar.html | 5 |
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> 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> {% 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> {{ author_email }}</a> |