diff --git a/README.md b/README.md index c33c694..ed3905c 100644 --- a/README.md +++ b/README.md @@ -248,15 +248,15 @@ Example: [[menu.main]] name = "blog" weight = 100 - url = "/blog/" + url = "blog/" [[menu.main]] name = "about" weight = 200 - url = "/about/" + url = "about/" [[menu.main]] - name = "coderag" + name = "projects" weight = 300 - url = "/coderag/" + url = "projects/" ``` ## Features diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 4d57b5d..bb4fad3 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -86,14 +86,14 @@ displayrssicon = true name = "posts" weight = 100 identifier = "posts" -url = "/posts/" +url = "posts/" [[menu.main]] name = "about" identifier = "about" weight = 200 -url = "/about/" +url = "about/" [[menu.main]] name = "projects" identifier = "projects" weight = 300 -url = "/projects/" +url = "projects/" diff --git a/layouts/partials/li.html b/layouts/partials/li.html index d30b5ed..e6ab7a2 100644 --- a/layouts/partials/li.html +++ b/layouts/partials/li.html @@ -14,7 +14,7 @@ {{ $total := sub $total 1 }} {{ range $i, $cat := sort .Params.categories }} {{ $cat | upper }}{{ if lt $i $total }}, + href="{{ "categories/" | relURL }}{{ $cat | humanize | urlize }}">{{ $cat | upper }}{{ if lt $i $total }}, {{ end }} {{ end }} {{ end }}