Make site.BaseURL and $pager.URL a string

Was template.URL.
This commit is contained in:
Bjørn Erik Pedersen
2023-10-30 09:07:03 +01:00
parent acf01bfb78
commit b6a7568131
4 changed files with 11 additions and 11 deletions

View File

@@ -417,8 +417,8 @@ func (s *Site) Hugo() hugo.HugoInfo {
}
// Returns the BaseURL for this Site.
func (s *Site) BaseURL() template.URL {
return template.URL(s.conf.C.BaseURL.WithPath)
func (s *Site) BaseURL() string {
return s.conf.C.BaseURL.WithPath
}
// Returns the last modification date of the content.