hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 26ae12c0c64b847d24bde60d7d710ea2efcb40d4
parent ee733085b7f5d3f2aef1667901ab6ecb8041d699
Author: Anthony Fok <foka@debian.org>
Date:   Fri, 28 May 2021 21:35:48 -0600

Fix invalid timestamp of the "public" folder

Special thanks to both Richard Mortimer (@oldelvet) and
Joshua M. Clulow (@jclulow) for their analysis and suggested fix:

 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088
 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273

Fixes #6161

Diffstat:
Mhugofs/fileinfo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugofs/fileinfo.go b/hugofs/fileinfo.go
@@ -280,7 +280,7 @@ func (fi *dirNameOnlyFileInfo) Mode() os.FileMode {
 }
 
 func (fi *dirNameOnlyFileInfo) ModTime() time.Time {
-	return time.Time{}
+	return time.Now()
 }
 
 func (fi *dirNameOnlyFileInfo) IsDir() bool {