mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* Add trailing slash to remove redirects. When you request /tags/foo, the web server will redirect you to /tags/foo/ so the browser needs to make two requests. Add the trailing slash in the link so that only one request is needed. * Add trailing slash to remove redirects. * Improve how trailing slash is added. Co-Authored-By: tobinjt <johntobin@johntobin.ie> * Improve how trailing slash is added. Co-Authored-By: tobinjt <johntobin@johntobin.ie> * Add John Tobin.
10 lines
281 B
HTML
10 lines
281 B
HTML
<div class="categories">
|
|
<i class="fas fa-folder"></i>
|
|
{{- range $index, $el := . -}}
|
|
{{- if gt $index 0 }}
|
|
<span class="separator">•</span>
|
|
{{- end }}
|
|
<a href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
|
|
{{- end -}}
|
|
</div>
|