mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Removing site.Directories.
Please revert if this is used somewhere.
This commit is contained in:
@ -36,7 +36,6 @@ type Site struct {
|
|||||||
Tmpl *template.Template
|
Tmpl *template.Template
|
||||||
Indexes IndexList
|
Indexes IndexList
|
||||||
Files []string
|
Files []string
|
||||||
Directories []string
|
|
||||||
Sections Index
|
Sections Index
|
||||||
Info SiteInfo
|
Info SiteInfo
|
||||||
Shortcodes map[string]ShortcodeFunc
|
Shortcodes map[string]ShortcodeFunc
|
||||||
@ -213,7 +212,6 @@ func (s *Site) initialize() {
|
|||||||
if path == staticDir {
|
if path == staticDir {
|
||||||
return filepath.SkipDir
|
return filepath.SkipDir
|
||||||
}
|
}
|
||||||
site.Directories = append(site.Directories, path)
|
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
if ignoreDotFile(path) {
|
if ignoreDotFile(path) {
|
||||||
|
Reference in New Issue
Block a user