From 982949305c42e81e32dd278034f760dd44712d1f Mon Sep 17 00:00:00 2001 From: "http://jmtd.net/" Date: Thu, 30 Aug 2012 13:48:37 -0400 Subject: some escapes --- doc/todo/publishing_in_the_future.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/todo') diff --git a/doc/todo/publishing_in_the_future.mdwn b/doc/todo/publishing_in_the_future.mdwn index a3cdacedb..8d94f1f00 100644 --- a/doc/todo/publishing_in_the_future.mdwn +++ b/doc/todo/publishing_in_the_future.mdwn @@ -7,7 +7,7 @@ useful? Thinking about how to implement this in ikiwiki, perhaps a conditional pagespec would be best (which could be tidied up into a template) - [[!if test="current_date_before()" + \[[!if test="current_date_before()" then="""[[!tag draft]]""" else="""[[!meta date=""]]""" ]] @@ -15,7 +15,7 @@ pagespec would be best (which could be tidied up into a template) …pre-supposing a scheme whereby tagging 'draft' hides the page from an aggregation somewhere. With a template, this could collapse to - [[!template id=publishafter date="Thu Aug 30 14:13:06 BST 2012"]] + \[[!template id=publishafter date="Thu Aug 30 14:13:06 BST 2012"]] This would require implementing the `current_date_before` pagespec. @@ -24,7 +24,7 @@ unpublished pages as 'dirty' so they were always scanned on refresh until their publish date has occurred. That could perhaps be implemented via a small plugin which defined a pagespec which ensured the page was 'dirty': - [[!if test="current_date_before()" + \[[!if test="current_date_before()" then="""[[!tag draft]][[!dirty]]""" else="""[[!meta date=""]]""" ]] -- cgit v1.2.3