Skip to content

Commit

Permalink
Fixing additional paths
Browse files Browse the repository at this point in the history
  • Loading branch information
talbring committed Nov 27, 2019
1 parent 57d58a3 commit 1311d68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _includes/tutorials_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h4 class="panel-title">
{% for item in section.tutorials %}
{% assign item_url = item | prepend:"/tutorials/" | append:"/" %}
{% assign p = site.tutorials | where:"url", item_url | first %}
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | relative_url }}">{{ p.title }}</a>
{% endfor %}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/vandv_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h4 class="panel-title">
{% for item in section.vandv %}
{% assign item_url = item | prepend:"/vandv/" | append:"/" %}
{% assign p = site.vandv | where:"url", item_url | first %}
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | prepend: site.baseurl }}">{{ p.title }}</a>
<a class="list-group-item {% if item_url == page.url %}active{% endif %}" href="{{ p.url | relative_url }}">{{ p.title }}</a>
{% endfor %}
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/vandv_section_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% assign previous = forloop.index0 | minus: 1 %}
{% assign previous_page = vandv[previous] | prepend:"/vandv/" | append:"/" %}
<li class="previous">
<a href="{{ previous_page | prepend: site.baseurl }}">
<a href="{{ previous_page | relative_url }}">
<span aria-hidden="true">&larr;</span> Previous
</a>
</li>
Expand All @@ -40,7 +40,7 @@
{% assign next = forloop.index0 | plus: 1 %}
{% assign next_page = vandv[next] | prepend:"/vandv/" | append:"/" %}
<li class="next">
<a href="{{ next_page | prepend: site.baseurl }}">
<a href="{{ next_page | relative_url }}">
Next <span aria-hidden="true">&rarr;</span>
</a>
</li>
Expand Down

0 comments on commit 1311d68

Please sign in to comment.