binario/layouts/partials/entry/meta/categories.html
Ghost Basenji 5c9ab83c83 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
2020-04-18 18:39:11 +04:00

11 lines
No EOL
426 B
HTML

{{- if .Params.categories }}
<span class="entry__meta-categories meta-categories">
<span class="meta-categories__list">{{ T "meta_categories" }}:
{{- range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}
<a class="meta-categories__link" href="{{ "categories/" replace . "#" "%23" | relLangURL }}{{ . | urlize | lower }}" rel="category">
{{- . -}}
</a>
{{- end }}
</span>
</span>
{{- end }}