diff options
author | Anthony Fok <[email protected]> | 2021-05-28 21:35:48 -0600 |
---|---|---|
committer | Anthony Fok <[email protected]> | 2021-06-04 14:50:30 -0600 |
commit | 26ae12c0c64b847d24bde60d7d710ea2efcb40d4 (patch) | |
tree | ff5c4cd9eeb2c79e988c385c389c834b94b6a5df /hugofs | |
parent | ee733085b7f5d3f2aef1667901ab6ecb8041d699 (diff) | |
download | hugo-26ae12c0c64b847d24bde60d7d710ea2efcb40d4.tar.gz hugo-26ae12c0c64b847d24bde60d7d710ea2efcb40d4.zip |
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 (limited to 'hugofs')
-rw-r--r-- | hugofs/fileinfo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugofs/fileinfo.go b/hugofs/fileinfo.go index d68321282..17fb62ea2 100644 --- 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 { |