summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hugolib/site.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 2275dbe84..6d2d6c852 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -598,18 +598,13 @@ func (h *HugoSites) fileEventsContentPaths(p []pathChange) []pathChange {
return keepers
}
-// HomeAbsURL is a convenience method giving the absolute URL to the home page.
-func (s *Site) HomeAbsURL() string {
+// SitemapAbsURL is a convenience method giving the absolute URL to the sitemap.
+func (s *Site) SitemapAbsURL() string {
base := ""
if len(s.conf.Languages) > 1 || s.Conf.DefaultContentLanguageInSubdir() {
base = s.Language().Lang
}
- return s.AbsURL(base, false)
-}
-
-// SitemapAbsURL is a convenience method giving the absolute URL to the sitemap.
-func (s *Site) SitemapAbsURL() string {
- p := s.HomeAbsURL()
+ p := s.AbsURL(base, false)
if !strings.HasSuffix(p, "/") {
p += "/"
}