diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 5407bb8..89fb9f4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,8 +20,7 @@ {{ end }} {{ if isset .Params "categories" }} under - {{ $baseUrl := .Site.BaseURL }} - {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href="{{ $baseUrl }}/categories/{{ . | urlize }}">{{ . }}</a>{{ end }} + {{ range .Params.categories }}<a class="post-category post-category-{{ . }}" href='{{ ( printf "categories/%s" . ) | absURL }}'>{{ . }}</a>{{ end }} {{ end }} </p> </header> |