diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-07 10:10:06 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-07 10:57:29 +0200 |
commit | 2817e842407c8dcbfc738297ab634392fcb41ce1 (patch) | |
tree | a5c8f9bc1b976881bd98219ebb3500ea6a85efce /hugofs/language_fs.go | |
parent | 623c9afa8409855ccfd7b000ae7c6780b780a5af (diff) |
Fix handling of content files with "." in them
As in, more dots than just to separate the extension and any language indicator.
Fixes #4559
Diffstat (limited to 'hugofs/language_fs.go')
-rw-r--r-- | hugofs/language_fs.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugofs/language_fs.go b/hugofs/language_fs.go index 95ec0831e..45cad8722 100644 --- a/hugofs/language_fs.go +++ b/hugofs/language_fs.go @@ -292,10 +292,9 @@ func (fs *LanguageFs) newLanguageFileInfo(filename string, fi os.FileInfo) (*Lan if fs.languages[fileLang] { lang = fileLang + baseNameNoExt = strings.TrimSuffix(baseNameNoExt, fileLangExt) } - baseNameNoExt = strings.TrimSuffix(baseNameNoExt, fileLangExt) - // This connects the filename to the filesystem, not the language. virtualName = baseNameNoExt + "." + lang + ext |