mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
go fmt so code
This commit is contained in:
parent
ff2b98c9dd
commit
92cff05582
1 changed files with 3 additions and 3 deletions
|
@ -25,15 +25,15 @@ import (
|
||||||
"github.com/spf13/nitro"
|
"github.com/spf13/nitro"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io"
|
"io"
|
||||||
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"net/url"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var DefaultTimer = nitro.Initalize()
|
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)
|
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))
|
base, err := url.Parse(string(s.Config.BaseUrl))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in a new issue