It’s a file path separator issue. Had to change from
{{ $thisSection := replace .File.Dir "\\" "" }}
to
{{ $thisSection := replace (replace .File.Dir "\\" "") "/" "" }}
I guess replaceRE
would work too.
It’s a file path separator issue. Had to change from
{{ $thisSection := replace .File.Dir "\\" "" }}
to
{{ $thisSection := replace (replace .File.Dir "\\" "") "/" "" }}
I guess replaceRE
would work too.