diff options
author | spf13 <[email protected]> | 2013-07-10 00:14:02 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2013-07-10 00:14:02 -0400 |
commit | 51e309854821a5e943e8e64eea218bc82c8f2dc6 (patch) | |
tree | f1b99485619c632826a144ccd33ca6ce60d2bade /main.go | |
parent | e76c3feb52381efaf8add59857d6940aaec7c0a8 (diff) | |
download | hugo-51e309854821a5e943e8e64eea218bc82c8f2dc6.tar.gz hugo-51e309854821a5e943e8e64eea218bc82c8f2dc6.zip |
Writing relative links to absolute so they work in feeds
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") |