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

Marc-Niclas Harm
30.16.2022 b84efff11943dc926d5e04892c215d5533dc4bc0
1
2
3
4
5
6
7
8
9
10
11
12
13
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>