dashboard
repositories
filestore
activity
search
login
external-software
/
github_gohugo_theme_anatole
mirror of
https://github.com/lxndrblz/anatole.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
feat: refactor CSS to SCSS
Alexander Bilz
21.13.2022
be3218290dc63ba251bfd2fe4d4dccb2122f4bbe
[external-software/github_gohugo_theme_anatole.git]
/
layouts
/
partials
/
taxonomy
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- $linkClass := .linkClass -}}
{{- $linkBase := .linkBase -}}
<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>