diff options
author | Kishan B <kishancs46@gmail.com> | 2018-10-11 08:21:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 08:21:52 +0300 |
commit | 99d5f54fcf8547e33f89ce06f87493e42f7c17f2 (patch) | |
tree | e5dfe76f4b3fdce3296582563448b23a09c80ed9 | |
parent | 37d206668e5096489bdac1e3074bb163368c5e83 (diff) | |
parent | 37c7326b0d0b482a2759115c6d1cad097c2a1abd (diff) |
Merge pull request #50 from RealOrangeOne/patch-1
Better URL joining
-rw-r--r-- | layouts/partials/sidebar.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 2b72681..7f15d56 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -5,9 +5,8 @@ <p class="sidebar-p">{{ . | safeHTML }}</p> {{ end }} <ul class="sidebar-menu"> - {{ $url := .Site.BaseURL }} {{ range .Site.Params.navlinks }} - <li><a href="{{ $url }}{{ .url }}">{{ .name }}</a></li> + <li><a href="{{ absURL .url }}">{{ .name }}</a></li> {{ end }} </ul> {{ partial "social_buttons_in_sidebar.html" . }} |