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

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2013-07-10 08:14:02 +0400
committerspf13 <steve.francia@gmail.com>2013-07-10 08:14:02 +0400
commit51e309854821a5e943e8e64eea218bc82c8f2dc6 (patch)
treef1b99485619c632826a144ccd33ca6ce60d2bade /main.go
parente76c3feb52381efaf8add59857d6940aaec7c0a8 (diff)
Writing relative links to absolute so they work in feeds
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 857b88745..9bb5ccd80 100644
--- a/main.go
+++ b/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")