From 5c9ab83c83aca067dc1ff36a787e33231fedac4e Mon Sep 17 00:00:00 2001 From: Ghost Basenji Date: Sat, 18 Apr 2020 18:39:11 +0400 Subject: [PATCH] We fixed this bug with symbol "#". If we have a tag named C#, the url is http://localhost:1313/tags/c#/ , this url show 404 page. Symbol "#" in url is Special characters. Then we change the # to %23, then it works. See https://github.com/Vimux/Binario/issues/28 I am not sure whether there is a better solution. Fix #27 --- layouts/partials/entry/meta/categories.html | 2 +- layouts/partials/entry/tags.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/entry/meta/categories.html b/layouts/partials/entry/meta/categories.html index 709a106..70ce776 100644 --- a/layouts/partials/entry/meta/categories.html +++ b/layouts/partials/entry/meta/categories.html @@ -2,7 +2,7 @@ {{ T "meta_categories" }}: {{- range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }} - + {{- . -}} {{- end }} diff --git a/layouts/partials/entry/tags.html b/layouts/partials/entry/tags.html index 4b4edc1..e2588e5 100644 --- a/layouts/partials/entry/tags.html +++ b/layouts/partials/entry/tags.html @@ -2,10 +2,10 @@ {{- with .Param $taxo }}