mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
parent
6019953769
commit
0f921ace6f
3 changed files with 28 additions and 1 deletions
|
@ -292,8 +292,10 @@ func (c *Client) Vendor() error {
|
|||
}
|
||||
}
|
||||
|
||||
// Also include any theme.toml or config.* files in the root.
|
||||
// Also include any theme.toml or config.* or hugo.* files in the root.
|
||||
configFiles, _ := afero.Glob(c.fs, filepath.Join(dir, "config.*"))
|
||||
configFiles2, _ := afero.Glob(c.fs, filepath.Join(dir, "hugo.*"))
|
||||
configFiles = append(configFiles, configFiles2...)
|
||||
configFiles = append(configFiles, filepath.Join(dir, "theme.toml"))
|
||||
for _, configFile := range configFiles {
|
||||
if err := hugio.CopyFile(c.fs, configFile, filepath.Join(vendorDir, t.Path(), filepath.Base(configFile))); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue