Add .Resource.PathInfo
Author: bepCreated Feb 24, 2024Updated Sep 13, 2026
LabelsStaleProposal
Which would be a smaller and curated version of what we assign to every resource internally. Instead of adding lots of NameOriginal variants, you would be able to do:
.PathInfo.Name // => roses-are-red.en.jpg
.PathInfo.NameNoIdentifier // => roses-are-red
.PathInfo.Unnormalized.NameNoIdentifier // => Roses are red
.PathInfo.Path
I can outline such an interface if people think it's a good idea ...?
/cc @jmooring
Source: gohugoio/hugo