cmt
This commit is contained in:
parent
adb4ffd5d5
commit
1b93ec5632
2
site.hs
2
site.hs
|
@ -233,6 +233,8 @@ sourceTags = do
|
||||||
use pages
|
use pages
|
||||||
htags .= M.fromList (invTags sgat)
|
htags .= M.fromList (invTags sgat)
|
||||||
|
|
||||||
|
-- | Organize a list of pages with hierarchical tags to a list with
|
||||||
|
-- hierarchical tags with pages attached.
|
||||||
invTags :: [(FilePath, [[String]])] -> [([String], [FilePath])]
|
invTags :: [(FilePath, [[String]])] -> [([String], [FilePath])]
|
||||||
invTags x =
|
invTags x =
|
||||||
map (fmap nub) $ groupSort [(t, p) | (p, htl) <- x, ht <- htl, t <- inits ht]
|
map (fmap nub) $ groupSort [(t, p) | (p, htl) <- x, ht <- htl, t <- inits ht]
|
||||||
|
|
Loading…
Reference in a new issue