bug fix: when using an image as a navbar title, use relative path so that a GitHub Project page will have the correct path
This commit is contained in:
parent
8e98675644
commit
8e634fd52a
@ -1,7 +1,7 @@
|
|||||||
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
|
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
|
||||||
|
|
||||||
{%- if site.title-img -%}
|
{%- if site.title-img -%}
|
||||||
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
|
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
|
||||||
{%- elsif site.title -%}
|
{%- elsif site.title -%}
|
||||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user