{{ if . }} <div class="categories"> <img class="page-icon header-icon" src="/svg/folder.svg"/> {{ range $index, $el := . }} {{ if gt $index 0 }} <span class="separator">•</span> {{ end }} <a href="{{ ( printf "categories/%s/" ( $el | urlize ) ) | relLangURL }}"> {{ . }} </a> {{ end }} </div> {{ end }}