Skip to content

Commit

Permalink
Fix nav links with baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawley committed Dec 2, 2018
1 parent 1eb5caa commit 5d4c742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="site-header px2 px-responsive">
<div class="mt2 wrap">
<div class="measure">
<a href="{{ site.url }}" class="site-title">{{ site.title }}</a>
<a href="{{ "/" | relative_url }}" class="site-title">{{ site.title }}</a>
<nav class="site-nav">
{% include navigation.html %}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% assign page = site.pages | where: "path", path | first %}

{% if page.title %}
<a href="{{ page.url }}">{{ page.title }}</a>
<a href="{{ page.url | relative_url }}">{{ page.title }}</a>
{% endif %}


Expand Down

0 comments on commit 5d4c742

Please sign in to comment.