aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/backlinks_result_is_lossy.mdwn
blob: 02e5b244037c36af3ce38c1f9ad15cac801b5a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
[[!tag patch patch/core]]
[[!template id=gitbranch branch=smcv/ready/among author="[[smcv]]"]]

IkiWiki::backlinks returns a form of $backlinks{$page} that has undergone a
lossy transformation (to get it in the form that page templates want), making
it more difficult to use in other contexts (like pagestats).

A commit on my `among` branch splits it into IkiWiki::backlink_pages
(which returns the keys of $backlinks{$page}, and might be suitable for
exporting) and IkiWiki::backlinks (which calls backlink_pages, then performs
the same lossy transformation as before on the result).