mirror of
https://github.com/tiennm99/hugoThemesSiteBuilder.git
synced 2026-10-16 08:15:06 +00:00
Update build.go
This commit is contained in:
1 parent
a544519d37
commit
1af539b867
1 file changed
+2
-2
@@ -169,8 +169,8 @@ func (c *buildClient) writeThemesContent() error {
|
||||
}
|
||||
|
||||
func (c *buildClient) writeThemeContent(k string, m client.Module) error {
|
||||
re := regexp.MustCompile(`\/v\d+$`)
|
||||
themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, "")))
|
||||
re := regexp.MustCompile(`\/v\d+$`)
|
||||
themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, "")))
|
||||
|
||||
themeDir := filepath.Join(c.contentDir, "themes", themeName)
|
||||
client.CheckErr(os.MkdirAll(themeDir, 0777))
|
||||
|
||||
Reference in new issue
Block a user