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

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-01-02 00:25:15 +0300
committerZachary Betz <zwbetz@gmail.com>2019-01-02 00:25:15 +0300
commitcaff368cfc4b587df33bdcb7fa278dbb2f7589b3 (patch)
tree85afdff7a40f3a9a33f4a6795b4e58ae9b377534
parent9f53c27c87b9d3b25c58e9384f62e0633c4d51a9 (diff)
Fix usage of absURL when hosted in subdir
-rw-r--r--layouts/partials/tags.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html
index 8db7b00..202b4f7 100644
--- a/layouts/partials/tags.html
+++ b/layouts/partials/tags.html
@@ -1,3 +1,4 @@
{{ range .Params.tags }}
-<small><code><a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a></code></small>
+{{ $href := print (absURL "tags/") (urlize .) }}
+<small><code><a href="{{ $href }}">{{ . }}</a></code></small>
{{ end }} \ No newline at end of file