]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix for data mounts in sub folders
authorDavid Karlsson <35727626+dvdksn@users.noreply.github.com>
Sat, 15 Jul 2023 09:13:08 +0000 (11:13 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jul 2023 09:13:08 +0000 (11:13 +0200)
commit286821e360e13b3a174854914c9cedd437bdd25e
tree5699a44ade0f60165394340916c6d84b9b352bf8
parent79f15be5b0e47a788f62e50ba3e354c247a65f6b
Fix for data mounts in sub folders

Before this change, data files from Hugo modules were always mounted at the
root of the `data` directory. The File and FileMetaInfo structs for modules
are different from 'native' data directories.

This changes how the keyParts for data files are generated so that data
from modules or native directories are treated the same.
hugolib/hugo_modules_test.go
hugolib/hugo_sites.go