Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zhaohuabing/hugo-theme-cleanwhite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuabing Zhao <zhaohuabing@gmail.com>2018-07-08 09:56:45 +0300
committerHuabing Zhao <zhaohuabing@gmail.com>2018-07-08 09:56:52 +0300
commit6330d47221603b20f1b9fef400e542dfe5a8b1aa (patch)
treeba4b51c813476932756aa1f11d2553d8e4353078 /layouts/partials/nav.html
parent1951427acb60c24ff1d051ea1881b252d78aee8e (diff)
Fix 404 errors when hosting in a subdir
Remove leading splash in URLs Remove trailing splash in config file Issue-ID: https://github.com/gohugoio/hugoThemes/issues/374 Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r--layouts/partials/nav.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 6ff7535..54fe9b1 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -26,13 +26,13 @@
</li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li>
- <a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a>
+ <a href="{{ "categories/" | absLangURL }}{{ $name | urlize }}">{{ $name }}</a>
</li>
{{ end }}
{{ if .Site.Params.algolia_search }}
<li>
- <a href="{{ "/search/" | absURL }}">SEARCH <img src="\img\search.png" height="15" style="cursor: pointer;"></a>
+ <a href="{{ "search" | absURL }}">SEARCH <img src="{{ "img/search.png" | absURL }}" height="15" style="cursor: pointer;"></a>
</li>
{{ end }}
</ul>