hugo icon indicating copy to clipboard operation
hugo copied to clipboard

hugofs: Fix glob case-sensitivity bug

Open satotake opened this issue 2 years ago • 0 comments

On Linux, hugofs.Glob does not hit any directories which include uppercase letters. (This does not happen on macOS.)

Since resources.GetMatch/Match uses Glob,

{{ resources.GetMatch "FOO/bar.css" }}

this does not match assets/FOO/bar.css .

On the other hand, you can get it with

{{ resources.Get "FOO/bar.css" }}

satotake avatar Sep 21 '22 15:09 satotake