From 67f83da07da20189f4bee99b05f2a54fede4bfc6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 12 Nov 2007 04:36:32 -0500 Subject: web commit by http://ptecza.myopenid.com/: * More dynamic rootpage parameter? --- doc/blog/discussion.mdwn | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'doc/blog/discussion.mdwn') diff --git a/doc/blog/discussion.mdwn b/doc/blog/discussion.mdwn index 40e8c8f77..2682799bd 100644 --- a/doc/blog/discussion.mdwn +++ b/doc/blog/discussion.mdwn @@ -1,4 +1,4 @@ -How do you provide the per post discussion links in your own blog? +## How do you provide the per post discussion links in your own blog? > That's configured by the "actions" parameter to the inline directive. See > docs in [[plugins/inline]]. --[[Joey]] @@ -13,3 +13,23 @@ take it as far as implementing "replies" to other comments. > See [[todo/discussion_page_as_blog]] for some of my own thoughts on this > --[[Joey]] + +--- + +## More dynamic `rootpage` parameter? + +I prefer to use a current year, month and day to archive my blog posts, for example +`post/2007/11/12/foo-bar-baz` path is better for me then `post/foo-bar-baz`. +Unfortunately it seems that `rootpage` parameter is very static. Is it a chance +to make it more dynamic? Now I have to use `svn mkdir` command to create +appropriate subdirectories by hand. + +I think that you could add builtin functions or variables, for example `current_year()` +or `$CURRENT_YEAR` to usage inside `rootpage` parameter. Something like for Manoj's +calendar plugin. Then my `rootpage` parameter could be like +`rootpage="post/current_year()/current_month()/current_day()"`. Another good hints +are welcomed ;) + +What's your opinion, Joey? I hope it's also useful for another ikiwiki lovers :) + +--[[Paweł|ptecza]] -- cgit v1.2.3 From 99cc46ec641853346e0f371d1a6cad2429569d76 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 12 Nov 2007 04:38:47 -0500 Subject: web commit by http://ptecza.myopenid.com/: * rootpage is a parameter of inline plugin --- doc/blog/discussion.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/blog/discussion.mdwn') diff --git a/doc/blog/discussion.mdwn b/doc/blog/discussion.mdwn index 2682799bd..fb643bf23 100644 --- a/doc/blog/discussion.mdwn +++ b/doc/blog/discussion.mdwn @@ -16,13 +16,13 @@ take it as far as implementing "replies" to other comments. --- -## More dynamic `rootpage` parameter? +## More dynamic `rootpage` parameter of inline plugin? I prefer to use a current year, month and day to archive my blog posts, for example `post/2007/11/12/foo-bar-baz` path is better for me then `post/foo-bar-baz`. -Unfortunately it seems that `rootpage` parameter is very static. Is it a chance -to make it more dynamic? Now I have to use `svn mkdir` command to create -appropriate subdirectories by hand. +Unfortunately it seems that `rootpage` parameter of inline plugin is very static. +Is it a chance to make it more dynamic? Now I have to use `svn mkdir` command +to create appropriate subdirectories by hand. I think that you could add builtin functions or variables, for example `current_year()` or `$CURRENT_YEAR` to usage inside `rootpage` parameter. Something like for Manoj's -- cgit v1.2.3