mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
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
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user