mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
committed by
Bjørn Erik Pedersen
parent
d4d49e0f0e
commit
3935faa417
@@ -601,7 +601,7 @@ func (h *HugoSites) fileEventsContentPaths(p []pathChange) []pathChange {
|
||||
// HomeAbsURL is a convenience method giving the absolute URL to the home page.
|
||||
func (s *Site) HomeAbsURL() string {
|
||||
base := ""
|
||||
if len(s.conf.Languages) > 1 {
|
||||
if len(s.conf.Languages) > 1 || s.Conf.DefaultContentLanguageInSubdir() {
|
||||
base = s.Language().Lang
|
||||
}
|
||||
return s.AbsURL(base, false)
|
||||
|
Reference in New Issue
Block a user