mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
Writing relative links to absolute so they work in feeds
This commit is contained in:
parent
e76c3feb52
commit
51e3098548
2 changed files with 16 additions and 1 deletions
4
main.go
4
main.go
|
@ -64,7 +64,9 @@ func main() {
|
|||
|
||||
if *baseUrl != "" {
|
||||
config.BaseUrl = *baseUrl
|
||||
}
|
||||
} else if *server {
|
||||
config.BaseUrl = "http://localhost:" + *port
|
||||
}
|
||||
|
||||
if *version {
|
||||
fmt.Println("Hugo Static Site Generator v0.8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue