aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/userdir__40____41___pagespec_directive_to_match_userpage_and_SubPages.mdwn
blob: b64bf0a18a86efca7a43c6f6a041d89b9843a320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[[!tag wishlist patch ]]
[[!template id=gitbranch branch=bfree/userdirps author="niall"]]
I've written a very small plugin, inspired by 
[[forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__]] 
which adds match_userdir to IkiWiki::PageSpec

userdir() in a [[IkiWiki/PageSpec]] takes no arguments and checks 
if the page is the users userpage or a SubPage of it.

The plugin is named userdirps.

In case my gitbranch template is wrong:
[[https://github.com/bfree/ikiwiki/commit/1f699d15c0778702cc5264dd3c8f822c6b0609ba]]