diff options
author | spf13 <[email protected]> | 2013-09-29 02:07:41 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2013-09-29 02:10:29 -0400 |
commit | 92cff055828ff250a5d40c3dae55f0d0235c7f61 (patch) | |
tree | 4c341361391f4743f1a2fd6811a3c6aeb54e6e6d /hugolib | |
parent | ff2b98c9dd23d0b0bcc6d0a961f373911eee6bef (diff) | |
download | hugo-92cff055828ff250a5d40c3dae55f0d0235c7f61.tar.gz hugo-92cff055828ff250a5d40c3dae55f0d0235c7f61.zip |
go fmt so code
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 58f770d5a..3511b6a13 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -25,15 +25,15 @@ import ( "github.com/spf13/nitro" "html/template" "io" + "net/url" "os" "strings" "time" - "net/url" ) var DefaultTimer = nitro.Initalize() -func MakePermalink(base *url.URL, path *url.URL) (*url.URL) { +func MakePermalink(base *url.URL, path *url.URL) *url.URL { return base.ResolveReference(path) } @@ -542,7 +542,7 @@ func (s *Site) Stats() { } } -func permalink(s *Site, plink string) (template.HTML) { +func permalink(s *Site, plink string) template.HTML { base, err := url.Parse(string(s.Config.BaseUrl)) if err != nil { panic(err) |