mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware
Fixes #2180
This commit is contained in:
@@ -739,7 +739,12 @@ func (s *SiteInfo) Sites() page.Sites {
|
||||
}
|
||||
|
||||
// Current returns the currently rendered Site.
|
||||
// If that isn't set yet, which is the situation before we start rendering,
|
||||
// if will return the Site itself.
|
||||
func (s *SiteInfo) Current() page.Site {
|
||||
if s.s.h.currentSite == nil {
|
||||
return s
|
||||
}
|
||||
return s.s.h.currentSite.Info
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user