allow sidebar directive to enable use of sidebar page
[ikiwiki] / doc / ikiwiki / directive / sidebar.mdwn
1 The `sidebar` directive is supplied by the [[!iki plugins/sidebar desc=sidebar]] plugin.
2
3 This directive can specify a custom sidebar to display on the page,
4 overriding any sidebar that is displayed globally.
5
6 If no custom sidebar content is specified, it forces the sidebar page to
7 be used as the sidebar, even if the `global_sidebars` setting has been
8 used to disable use of the sidebar page by default.
9
10 ## examples
11
12         \[[!sidebar """
13         This is my custom sidebar for this page.
14
15         \[[!calendar pages="posts/*"]]
16         """]]
17
18         \[[!sidebar]]
19
20 [[!meta robots="noindex, follow"]]