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

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Maddox <me@thomasem.net>2019-06-09 17:32:19 +0300
committerThomas Maddox <me@thomasem.net>2019-06-09 20:55:43 +0300
commitcdc4ae021e2bf1f3b949c1425b57079ca44d5741 (patch)
tree1543f706715f8622573f137172aacc0d955ec1ec
parent72fdc0d190ef9f89ef9eb4683d554a63a08847af (diff)
Humanize link text for Categories to handle spaces
-rw-r--r--layouts/partials/homepage.html2
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 }}