<p>
    {{ if isset .Params "categoriesspot" }}
    <small>{{ i18n "categories" }} : 
      {{ $len := (sub (len .Params.categoriesspot) 1)}}
      {{ range $key, $name := .Params.categoriesspot }}
        {{ $pagepath := $name | urlize | lower | printf "%s%s" "/categoriesspot/"}}
        {{ $p := $.Site.GetPage $pagepath}}

        <a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
        {{ if ne $key $len }} | {{ else }}{{ end }}
      {{ end }}
    </small>
    {{ end }}

    {{ if isset .Params "tagsspot" }}
    <br />
    <small>
      {{ i18n "tags" }} : 
      {{ $len := (sub (len .Params.tagsspot) 1)}}
      {{ range $key, $name := .Params.tagsspot }}
        {{ $pagepath := $name | urlize | lower | printf "%s%s" "/tagsspot/"}}
        {{ $p := $.Site.GetPage $pagepath}}

        <a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
        {{ if ne $key $len }} | {{ else }}{{ end }}
    {{ end }}
    </small>
    {{ end }}
</p>