Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoThemesSiteBuilder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorIgor Baiborodine <igor@kiroule.com>2022-06-07 15:32:11 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-06-07 16:28:47 +0300
commit1af539b86723d065764fc092fa9fb028ab489d17 (patch)
treeb92c88e04bc3f278674afa8772b4658445f7676c /pkg
parenta544519d3729ca9f75fc7c096087af7d5d588cd2 (diff)
Update build.go
Diffstat (limited to 'pkg')
-rw-r--r--pkg/buildcmd/build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go
index 209986f..a4f6878 100644
--- a/pkg/buildcmd/build.go
+++ b/pkg/buildcmd/build.go
@@ -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))