mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
Removing site.Directories.
Please revert if this is used somewhere.
This commit is contained in:
1 parent
b14b61af37
commit
097b782a80
1 file changed
-2
@@ -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