"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "commands/hugo.go" between
hugo-0.85.0.tar.gz and hugo-0.86.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

hugo.go  (hugo-0.85.0):hugo.go  (hugo-0.86.0)
skipping to change at line 700 skipping to change at line 700
c.logger.Errorln("walker: ", err) c.logger.Errorln("walker: ", err)
return nil return nil
} }
if fi.IsDir() { if fi.IsDir() {
if fi.Name() == ".git" || if fi.Name() == ".git" ||
fi.Name() == "node_modules" || fi.Name() == "bowe r_components" { fi.Name() == "node_modules" || fi.Name() == "bowe r_components" {
return filepath.SkipDir return filepath.SkipDir
} }
filenames = append(filenames, fi.Meta().Filename()) filenames = append(filenames, fi.Meta().Filename)
} }
return nil return nil
} }
watchFiles := c.hugo().PathSpec.BaseFs.WatchDirs() watchFiles := c.hugo().PathSpec.BaseFs.WatchDirs()
for _, fi := range watchFiles { for _, fi := range watchFiles {
if !fi.IsDir() { if !fi.IsDir() {
filenames = append(filenames, fi.Meta().Filename()) filenames = append(filenames, fi.Meta().Filename)
continue continue
} }
w := hugofs.NewWalkway(hugofs.WalkwayConfig{Logger: c.logger, Inf o: fi, WalkFn: walkFn}) w := hugofs.NewWalkway(hugofs.WalkwayConfig{Logger: c.logger, Inf o: fi, WalkFn: walkFn})
if err := w.Walk(); err != nil { if err := w.Walk(); err != nil {
c.logger.Errorln("walker: ", err) c.logger.Errorln("walker: ", err)
} }
} }
filenames = helpers.UniqueStringsSorted(filenames) filenames = helpers.UniqueStringsSorted(filenames)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)