mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
gofmt all go code
This commit is contained in:
parent
ff9f6e1b2a
commit
6dd2e9a49a
14 changed files with 2013 additions and 2013 deletions
|
@ -52,11 +52,11 @@ func server(cmd *cobra.Command, args []string) {
|
|||
BaseUrl = "http://" + BaseUrl
|
||||
}
|
||||
|
||||
if serverAppend {
|
||||
Config.BaseUrl = strings.TrimSuffix(BaseUrl, "/") + ":" + strconv.Itoa(serverPort)
|
||||
} else {
|
||||
Config.BaseUrl = strings.TrimSuffix(BaseUrl, "/")
|
||||
}
|
||||
if serverAppend {
|
||||
Config.BaseUrl = strings.TrimSuffix(BaseUrl, "/") + ":" + strconv.Itoa(serverPort)
|
||||
} else {
|
||||
Config.BaseUrl = strings.TrimSuffix(BaseUrl, "/")
|
||||
}
|
||||
|
||||
build(serverWatch)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue