diff options
author | Kaito Sugimoto <hellorusk1998@gmail.com> | 2022-11-06 05:11:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 05:11:44 +0300 |
commit | 93d5cc0ad74d6d951afe87df1ce51977a7f41a6a (patch) | |
tree | da90430bd3c0d0ed5d07aa0549359cfa60525fb8 | |
parent | c9fd31ef69c5c40341476e6b1bff840a62b9dcb0 (diff) | |
parent | ea292f6cf169fcc8d33b0448606548ba996d5e7f (diff) |
Merge pull request #17 from LuciferianInk/tags-handlingmain
fix tags when baseURL = "/"
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9997b19..7fccde4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,7 +10,7 @@ {{ if .Params.tags }} <div class="blog-tags"> {{ range .Params.tags }} - <a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}/">{{ . }}</a> + <a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }} </div> {{ end }} @@ -22,4 +22,4 @@ </button> {{ end }} </div> -{{ end }}
\ No newline at end of file +{{ end }} |