{{ $currentPageUrl := .RelPermalink }} {{ if and .Params.tags .Site.Taxonomies.tags }} {{ $name := index .Params.tags 0 }} {{ $name := $name | urlize }} {{ $tags := index .Site.Taxonomies.tags $name }}