diff options
author | Thomas Maddox <me@thomasem.net> | 2019-06-09 17:32:19 +0300 |
---|---|---|
committer | Thomas Maddox <me@thomasem.net> | 2019-06-09 20:55:43 +0300 |
commit | cdc4ae021e2bf1f3b949c1425b57079ca44d5741 (patch) | |
tree | 1543f706715f8622573f137172aacc0d955ec1ec | |
parent | 72fdc0d190ef9f89ef9eb4683d554a63a08847af (diff) |
Humanize link text for Categories to handle spaces
-rw-r--r-- | layouts/partials/homepage.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html index 81177dc..dafb303 100644 --- a/layouts/partials/homepage.html +++ b/layouts/partials/homepage.html @@ -21,7 +21,7 @@ <section class="categories"> {{ range $name, $value := . }} <h2 class="category"> - <a href="{{ $baseurl }}categories/{{ $name | urlize }}">{{ title $name }}</a> + <a href="{{ $baseurl }}categories/{{ $name | urlize }}">{{ humanize $name | title }}</a> <small>({{ .Count }})</small> </h2> {{ end }} |