Skip to content

Commit

Permalink
feat: support hexo
Browse files Browse the repository at this point in the history
  • Loading branch information
fredliang44 committed May 10, 2022
1 parent e47e9b8 commit d72f2cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions handler/deploy/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
return "angular"
}

if strings.Contains(k, "hexo") {
c.Type = "hexo"
return "hexo"
}

}
}

Expand Down Expand Up @@ -143,9 +148,6 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
return "static"
}

// handle static site generator
// TODO: hexo

// hugo
if FileExists("config.toml") && FileExists("themes") {
c.Type = "hugo"
Expand Down

0 comments on commit d72f2cd

Please sign in to comment.