mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
24.34.2021 6fe4462e53ea300d3734301edba33cb1866fa777
layouts/partials/taxonomy/template.html
@@ -1,12 +1,14 @@
{{- $linkClass := .linkClass -}}
{{- $linkBase := .linkBase -}}
<span class="separator">
    {{- range $index, $el := .items -}}
        <!-- Replace certain special characters with their URL encoded counterparts -->
        {{- $item := replace . "#" "%23" -}}
        {{- $item = replace $item "." "%2e" -}}
        {{- $link := ( printf "%s/%s/" $linkBase ( $item | urlize ) ) | relLangURL -}}
        <a class="{{$linkClass}}" href="{{$link}}">{{- . -}}</a>
    {{- end -}}
</span>
  {{- range $index, $el := .items -}}
    <!-- Replace certain special characters with their URL encoded counterparts -->
    {{- $item := replace . "#" "%23" -}}
    {{- $item = replace $item "." "%2e" -}}
    {{- $link := ( printf "%s/%s/" $linkBase ( $item | urlize ) ) | relLangURL -}}
    <a class="{{ $linkClass }}" href="{{ $link }}">{{- . -}}</a>
  {{- end -}}
</span>