Skip to content

Commit 8e634fd

Browse files
authored
bug fix: when using an image as a navbar title, use relative path so that a GitHub Project page will have the correct path
1 parent 8e98675 commit 8e634fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<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 %}">
22

33
{%- if site.title-img -%}
4-
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
4+
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
55
{%- elsif site.title -%}
66
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
77
{%- endif -%}

0 commit comments

Comments
 (0)