{{- $pageurl := .Permalink }} {{- $title := .Title }} {{- $.Scratch.Set "tags" ""}} {{- with .Params.Tags }} {{ $hashtags := newScratch}} {{- range . }}{{ $hashtags.Add "tags" (slice (replaceRE "(\\s)" "" . ))}}{{end}} {{- $.Scratch.Set "tags" (delimit ($hashtags.Get "tags") ",") }} {{- end -}}