diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-28 12:28:24 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-28 13:52:26 +0100 |
commit | a9a93d082d8640684b7fd0076c64ea808ea7f762 (patch) | |
tree | 05248da0a986aa8d1993f0443e081789786cb19c /hugolib/pageSort.go | |
parent | b09a40333f382cc1034d2eda856230258ab6b8cc (diff) |
hugolib: Fall back to title in ByLinkTitle sort
Fixes #4953
Diffstat (limited to 'hugolib/pageSort.go')
-rw-r--r-- | hugolib/pageSort.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pageSort.go b/hugolib/pageSort.go index 055519b04..c7766e2a6 100644 --- a/hugolib/pageSort.go +++ b/hugolib/pageSort.go @@ -155,7 +155,7 @@ func (p Pages) ByLinkTitle() Pages { const key = "pageSort.ByLinkTitle" linkTitle := func(p1, p2 *Page) bool { - return p1.linkTitle < p2.linkTitle + return p1.LinkTitle() < p2.LinkTitle() } pages, _ := spc.get(key, pageBy(linkTitle).Sort, p) |