Filter dot files etc. in i18n

Closes #11993
This commit is contained in:
Bjørn Erik Pedersen
2024-02-05 14:54:02 +01:00
parent c37bf19c89
commit 9df7b295bc
5 changed files with 38 additions and 14 deletions

View File

@@ -473,7 +473,8 @@ func (h *HugoSites) loadData() error {
h.data = make(map[string]any)
w := hugofs.NewWalkway(
hugofs.WalkwayConfig{
Fs: h.PathSpec.BaseFs.Data.Fs,
Fs: h.PathSpec.BaseFs.Data.Fs,
IgnoreFile: h.SourceSpec.IgnoreFile,
WalkFn: func(path string, fi hugofs.FileMetaInfo) error {
if fi.IsDir() {
return nil