Commit 08db72d 1 parent ba03114 commit 08db72d Copy full SHA for 08db72d
File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -598,18 +598,13 @@ func (h *HugoSites) fileEventsContentPaths(p []pathChange) []pathChange {
598
598
return keepers
599
599
}
600
600
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 {
603
603
base := ""
604
604
if len (s .conf .Languages ) > 1 || s .Conf .DefaultContentLanguageInSubdir () {
605
605
base = s .Language ().Lang
606
606
}
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 )
613
608
if ! strings .HasSuffix (p , "/" ) {
614
609
p += "/"
615
610
}
You can’t perform that action at this time.
0 commit comments