]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Map_sorts_subtags_under_a_different_tag.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / Map_sorts_subtags_under_a_different_tag.mdwn
1 ikiwiki's map directive is full of surprises. I have put a snapshot of the
2 site as it was when I saw the following problem at
3 <http://scratch.madduck.net/web__phd.martin-krafft.net__map-bug-2.tgz> and can
4 revert there any time, but I need to move on.
5
6 I have a few tags starting with `a` (abridged list):
7
8     $ ls wiki/factors/tag/a*
9     [...]
10     wiki/factors/tag/active/:
11     index.html
12     
13     wiki/factors/tag/affects/:
14     contributors/  developers/  users/
15     [...]
16
17 In `wiki-wc/factors/tag.mdwn`, I have a map for these tags:
18
19     \[[!map pages="factors/tag/*"]]
20
21 and this works, except that for *whatever* reason, it actually sorts the three
22 `affects/*` tags under `active`:
23
24     $ w3m -dump wiki/factors/tag/index.html | grep active -A3
25                   ○ active
26                       ■ contributors
27                       ■ developers
28                       ■ users
29
30 And this is actually in the HTML code:
31
32     <li><a href="active/">active</a>
33     <ul>
34     <li><a href="affects/contributors/">contributors</a>
35     </li>
36     <li><a href="affects/developers/">developers</a>
37     </li>
38     <li><a href="affects/users/">users</a>
39     </li></ul>
40     </li>
41     <li><a href="approach/">approach</a>
42     </li>
43
44 So it's not that the `<ul>` has an empty parent `<li>`, the three tags are
45 *really* children of `active`.
46
47 This really blows my mind. :)
48
49 Rendering issue. [[fixed|done]] --[[Joey]]