fix sorting of tags and pages by name
This commit is contained in:
parent
0e89ba2cf9
commit
de3fa4b1bc
2
Tags.hs
2
Tags.hs
|
@ -146,7 +146,7 @@ toSortKey ident x
|
||||||
then Negative i
|
then Negative i
|
||||||
else Positive i
|
else Positive i
|
||||||
| Just s <- x ^? key "meta" . key "order" . _String = Stringy (T.unpack s)
|
| Just s <- x ^? key "meta" . key "order" . _String = Stringy (T.unpack s)
|
||||||
| Just n <- x ^? key "name" . _String = Stringy (T.unpack n)
|
| Just n <- x ^? key "meta" . key "name" . _String = Stringy (T.unpack n)
|
||||||
| otherwise = Stringy ident
|
| otherwise = Stringy ident
|
||||||
|
|
||||||
-- | A generic helper for rendering metadata for tagged pages.
|
-- | A generic helper for rendering metadata for tagged pages.
|
||||||
|
|
Loading…
Reference in a new issue