summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-10-30 09:07:03 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-10-30 10:26:06 +0100
commitb6a7568131422a2aee1904d48ca4a0a87d8190b8 (patch)
tree545a154c7b56e4600fbffa32292c795894745511 /hugolib
parentacf01bfb7842c52aab4af8fe599b6b3662b7b3e6 (diff)
Make site.BaseURL and $pager.URL a string
Was template.URL.
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/site_new.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go
index 127b0e296..ac59e01c7 100644
--- a/hugolib/site_new.go
+++ b/hugolib/site_new.go
@@ -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.