mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-26 07:58:35 +00:00
5c9ab83c83
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
11 lines
No EOL
426 B
HTML
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 }} |