{{ $firstBracket := "\\[\\[" }} {{ $lastBracket := "\\]\\]" }} {{ $filename := .File.BaseFileName }} {{ $wikilink := printf "%s%s%s" $firstBracket $filename $lastBracket }} {{- $.Scratch.Add "backlinks" slice -}}