Remove URL param from exported AbsURL methods

This is to make it clear that there is only one URL in play,
the BaseURL.
This commit is contained in:
bep
2015-03-18 19:42:46 +01:00
parent e7099cfa26
commit 658cfb287e
3 changed files with 29 additions and 15 deletions

View File

@@ -1363,7 +1363,7 @@ func (s *Site) renderAndWriteXML(name string, dest string, d interface{}, layout
err := s.render(name, d, renderBuffer, layouts...)
absURLInXML, err := transform.AbsURLInXML(viper.GetString("BaseURL"))
absURLInXML, err := transform.AbsURLInXML()
if err != nil {
return err
}
@@ -1393,7 +1393,7 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou
transformLinks := transform.NewEmptyTransforms()
if viper.GetBool("CanonifyURLs") {
absURL, err := transform.AbsURL(viper.GetString("BaseURL"))
absURL, err := transform.AbsURL()
if err != nil {
return err
}