Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Link root correctly if pages is served from subdir
Browse files Browse the repository at this point in the history
Fixes #32
  • Loading branch information
digitalcraftsman committed Sep 24, 2016
1 parent eac7aad commit 821d507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/nav_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }}


<a {{ if $isCurrent }}class="current"{{ end }} title="{{ $currentMenuEntry.Name }}" href="{{ $currentMenuEntry.URL | absURL }}">
<a {{ if $isCurrent }}class="current"{{ end }} title="{{ $currentMenuEntry.Name }}" href="{{ $currentMenuEntry.URL | relURL}}">##
{{ $currentMenuEntry.Pre }}
{{ $currentMenuEntry.Name }}
</a>
Expand Down

0 comments on commit 821d507

Please sign in to comment.