Support title-img config param to have image in the navbar instead of text

This commit is contained in:
Dean Attali 2016-12-15 16:46:53 -05:00 committed by GitHub
parent bc854ed771
commit 14cbc5a266
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
{% if site.title-img %}
<a class="navbar-brand navbar-brand-logo" href="{{ site.url }}"><img src="{{ site.title-img }}"/></a>
{% else %}
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
{% endif %}
</div>
<div class="collapse navbar-collapse" id="main-navbar">