"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "resources/resource_factories/create/create.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).

create.go  (hugo-0.85.0):create.go  (hugo-0.86.0)
skipping to change at line 96 skipping to change at line 96
var res resource.Resources var res resource.Resources
handle := func(info hugofs.FileMetaInfo) (bool, error) { handle := func(info hugofs.FileMetaInfo) (bool, error) {
meta := info.Meta() meta := info.Meta()
r, err := c.rs.New(resources.ResourceSourceDescriptor{ r, err := c.rs.New(resources.ResourceSourceDescriptor{
LazyPublish: true, LazyPublish: true,
FileInfo: info, FileInfo: info,
OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) { OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) {
return meta.Open() return meta.Open()
}, },
RelTargetFilename: meta.Path(), RelTargetFilename: meta.Path,
}) })
if err != nil { if err != nil {
return true, err return true, err
} }
res = append(res, r) res = append(res, r)
return firstOnly, nil return firstOnly, nil
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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