commands: Use short date format in CLI docs - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit e614d8a57c2ff5eef9270d51fcc6518398d7ff88
DIR parent fca49d6c608d227049cb2f26895cfecc685f1c89
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 11 Apr 2018 09:47:58 +0200
commands: Use short date format in CLI docs
To make it possible to compare the output.
See #4598
Diffstat:
M commands/gendoc.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/commands/gendoc.go b/commands/gendoc.go
@@ -57,7 +57,7 @@ for rendering in Hugo.`,
return err
}
}
- now := time.Now().Format(time.RFC3339)
+ now := time.Now().Format("2006-01-02")
prepender := func(filename string) string {
name := filepath.Base(filename)
base := strings.TrimSuffix(name, path.Ext(name))