Remove leading slash from links so that theme is compatible with Hugo Themes Site

This commit is contained in:
Joe Hutchinson
2019-01-08 10:12:23 -05:00
parent 5128090655
commit f70edfd9a3
5 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
<nav class="nav-bar side-padding">
<h1 class="nav-header"><a href="/" class="nav-text">
<h1 class="nav-header"><a href="{{ .Site.BaseURL }}" class="nav-text">
{{ if isset $.Site.Params "brand"}}
{{- $.Site.Params.brand -}}
{{ else }}
@@ -17,7 +17,7 @@
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
{{ end }}
{{ range $key, $value := .Site.Taxonomies.categories }}
<li><a href="{{ (printf "%s%s" "/categories/" ($key | urlize)) | absURL }}" class="hamburger-menu-overlay-link">{{ $key | humanize }}</a></li>
<li><a href="{{ (printf "%s%s" "categories/" ($key | urlize)) | absURL }}" class="hamburger-menu-overlay-link">{{ $key | humanize }}</a></li>
{{ end }}
</ul>
</div>