Skip to content

Commit 08db72d

Browse files
committed
hugolib: Remove Site.HomeAbsURL
It's not in use and after gohugoio#12266 it's also not corret to use on its own (use .Site.Home.Permalink).
1 parent ba03114 commit 08db72d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

hugolib/site.go

+3-8
Original file line numberDiff line numberDiff line change
@@ -598,18 +598,13 @@ func (h *HugoSites) fileEventsContentPaths(p []pathChange) []pathChange {
598598
return keepers
599599
}
600600

601-
// HomeAbsURL is a convenience method giving the absolute URL to the home page.
602-
func (s *Site) HomeAbsURL() string {
601+
// SitemapAbsURL is a convenience method giving the absolute URL to the sitemap.
602+
func (s *Site) SitemapAbsURL() string {
603603
base := ""
604604
if len(s.conf.Languages) > 1 || s.Conf.DefaultContentLanguageInSubdir() {
605605
base = s.Language().Lang
606606
}
607-
return s.AbsURL(base, false)
608-
}
609-
610-
// SitemapAbsURL is a convenience method giving the absolute URL to the sitemap.
611-
func (s *Site) SitemapAbsURL() string {
612-
p := s.HomeAbsURL()
607+
p := s.AbsURL(base, false)
613608
if !strings.HasSuffix(p, "/") {
614609
p += "/"
615610
}

0 commit comments

Comments
 (0)