]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/feedpages_does_not_prevent_tags_from_being_aggregated.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[ikiwiki.git] / doc / bugs / feedpages_does_not_prevent_tags_from_being_aggregated.mdwn
1 I added a feedpages directive to `blog/index.mdwn` to not pick up anything tagged `tags/random/hidden` yet that still happenend.
2
3     ~git/richardhartmann.de/blog % grep hidden index.mdwn
4     \[[!inline pages="./posts/*/*/* and !*/Discussion" feedpages="./posts/*/*/* and !*/Discussion and not tagged(tags/random/hidden)" show="10" actions=yes rootpage="blog"]]
5     ~git/richardhartmann.de/blog % grep hidden posts/2013/05/17-Debian_Release_Critical_Bug_report_for_Week_20.mdwn
6     \[[!tag tags/tech/floss/debian tags/tech/floss/debian/rc-stats/8.0-jessie tags/random/hidden]]
7     ~git/richardhartmann.de/blog %
8
9 If you need more information, please let me know.
10
11 Richard
12
13 > I don't think this is a bug. You have a syntax error in your pagespec:
14 > "not" is not a recognised keyword in [[pagespecs|ikiwiki/pagespec]],
15 > so `and not tagged(...)` should be `and !tagged(...)`. Presumably inline
16 > falls back to `pages` when `feedpages` doesn't work.
17 >
18 > By posting the pagespec here with insufficient escaping (which I've fixed)
19 > you caused *this* ikiwiki instance's HTML to contain an error message
20 > illustrating that syntax error :-)
21 >
22 >     <span class="error">Error: syntax error in pagespec "(./posts/*/*/* and !*/Discussion) and (./posts/*/*/* and !*/Discussion and not tagged(tags/random/hidden))"</span>
23 >
24 > [[done]]. --[[smcv]]
25
26 > > As per IRC: Thanks. As an aside, shouldn't this ikiwiki instance ignore directives in normal text? The problem may be non-trivial, but still... -- Richard
27
28 >>> "Normal text" is exactly where directives go, so, not really.
29 >>> If you mean verbatim text (e.g. indentation in Markdown): the fact that
30 >>> directives still expand to HTML, which is then treated as verbatim, is an
31 >>> unfortunate result of how ikiwiki interacts with pages' markup languages
32 >>> (directives and wikilinks happen before markup is converted to HTML). --[[smcv]]