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

github.com/dplesca/purehugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html3
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>