aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspalax <spalax@web>2012-06-07 20:00:58 -0400
committeradmin <admin@branchable.com>2012-06-07 20:00:58 -0400
commit8087b235994340dc15bddc17de553048361320ca (patch)
treed1a699bae3375b89cd3fb250dc1d445c5eb9d86a
parente2cff3e27ee6b179822bbea6a2f93307ade18433 (diff)
downloadikiwiki-8087b235994340dc15bddc17de553048361320ca.tar
ikiwiki-8087b235994340dc15bddc17de553048361320ca.tar.gz
Contrib plugin created_in_future
-rw-r--r--doc/plugins/contrib/created_in_future.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/plugins/contrib/created_in_future.mdwn b/doc/plugins/contrib/created_in_future.mdwn
new file mode 100644
index 000000000..5768057aa
--- /dev/null
+++ b/doc/plugins/contrib/created_in_future.mdwn
@@ -0,0 +1,18 @@
+# Created_in_future
+
+This plugin provides a `created_in_future()` [[PageSpec|ikiwiki/pagespec/]]
+function. It matches pages which have a creation date in the future.
+
+It also sets the date of the next modification of the page on its creation
+date, so that the corresponding page (and the pages referring to it) will be
+rebuilt on the relevant call of `ikiwiki`.
+
+## Usage
+
+It can be used to display a list of upcoming events.
+
+ \[[!inline pages="events/* and created_in_future()" reverse=yes sorted=meta(date)]]
+
+## Code
+
+Code and documentation this way: [[https://atelier.gresille.org/projects/gresille-ikiwiki/wiki/Created_in_future]].