summaryrefslogtreecommitdiff
path: root/ikiwiki/directive/trailitems.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-08-04 12:13:19 +0200
committerJonas Smedegaard <dr@jones.dk>2012-08-04 12:13:19 +0200
commit0686e55e2a02a8e50cac8ac21a51d938a4cb0784 (patch)
tree0cc5cbcfd3e2a8fa6754e7bd8706f8a64e9f3e94 /ikiwiki/directive/trailitems.mdwn
parent310150aea29904bc6a929ddcfbc191362ec19714 (diff)
Sync with ikiwiki 3.20120419.
Diffstat (limited to 'ikiwiki/directive/trailitems.mdwn')
-rw-r--r--ikiwiki/directive/trailitems.mdwn25
1 files changed, 25 insertions, 0 deletions
diff --git a/ikiwiki/directive/trailitems.mdwn b/ikiwiki/directive/trailitems.mdwn
new file mode 100644
index 0000000..387b403
--- /dev/null
+++ b/ikiwiki/directive/trailitems.mdwn
@@ -0,0 +1,25 @@
+The `trailitems` directive is supplied by the
+[[!iki plugins/trail desc=trail]] plugin. It adds pages
+to the trail represented by the current page, without producing any output
+on that page.
+
+ \[[!trailitems pages="posts/*" sort="age"]]
+
+ \[[!trailitems pagenames="a b c"]]
+
+Options are similar to [[!iki ikiwiki/directive/inline desc=inline]]:
+
+* `pages`: adds pages that match a [[ikiwiki/PageSpec]] to the trail
+ (cannot be used with `pagenames`)
+
+* `pagenames`: if used instead of `pages`, this is interpreted as a
+ space-separated list of absolute page names
+ ([[SubPage/LinkingRules]] are not taken into account)
+ to add to the trail
+
+* `sort`: add the pages matched by `pages` to the trail in this
+ [[ikiwiki/pagespec/sorting]] order (cannot be used with `pagenames`)
+
+* `reverse`: reverse the order of `sort` (cannot be used with `pagenames`)
+
+[[!meta robots="noindex, follow"]]