
{{- $page := . }}
{{- if .Params.tags }}
<div class="tags">
{{- range sort .Params.tags }}
  {{- $tag := . }}
  {{- with $page.Site.GetPage (printf "%s%s" ("/tags/" | relURL ) $tag ) }}
    {{- $to := . }}
  <a class="tag-link" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ $tag }}</a>
  {{- end }}
{{- end }}
</div>
{{- end }}