diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-05 14:54:02 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-05 14:54:02 +0100 |
commit | 9df7b295bcfb59000f6ee675dfbbc53654f3d86c (patch) | |
tree | 2ff6fc5d081754120b6605d43ba6640ad94aa33f /langs/i18n | |
parent | c37bf19c898035de1518c3f2ab4380f08817151f (diff) | |
download | hugo-9df7b295bcfb59000f6ee675dfbbc53654f3d86c.tar.gz hugo-9df7b295bcfb59000f6ee675dfbbc53654f3d86c.zip |
Filter dot files etc. in i18n
Closes #11993
Diffstat (limited to 'langs/i18n')
-rw-r--r-- | langs/i18n/translationProvider.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/langs/i18n/translationProvider.go b/langs/i18n/translationProvider.go index ab5247413..9bbd5d9f6 100644 --- a/langs/i18n/translationProvider.go +++ b/langs/i18n/translationProvider.go @@ -59,7 +59,8 @@ func (tp *TranslationProvider) NewResource(dst *deps.Deps) error { w := hugofs.NewWalkway( hugofs.WalkwayConfig{ - Fs: dst.BaseFs.I18n.Fs, + Fs: dst.BaseFs.I18n.Fs, + IgnoreFile: dst.SourceSpec.IgnoreFile, WalkFn: func(path string, info hugofs.FileMetaInfo) error { if info.IsDir() { return nil |