aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/common/navbar.html18
1 files changed, 18 insertions, 0 deletions
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 @@
<li><a href="{{ node.url | relative_url }}">{{ icon }}{{ link }}</a></li>
{% 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 %}<span class="glyphicon glyphicon-{{ github_icon }}"></span>&nbsp;{% endcapture %}
+ {% if site.settings.navbar.github == false %}
+ {% else %}
+ <li><a href="{{ site.github.repository_url }}">{{ github_icon }}{{ github_link | upcase }}</a></li>
+ {% endif %}
+ {% endif %}
</ul>
</div>
</div>