summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-11 16:42:49 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-11 16:52:54 -0400
commite1939185d29e1431861e63d6526cb3a498d6033e (patch)
treef275b46d51d4fcc1e8faf8916e7c7f2069858107 /templates
parent5cddd8a0a3b1b42dd3a92eb4f839679c12ddf97e (diff)
ikiwiki-calendar: New command automates creation of archive pages using the calendar plugin.
Diffstat (limited to 'templates')
-rw-r--r--templates/calendarmonth.tmpl3
-rw-r--r--templates/calendaryear.tmpl1
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/calendarmonth.tmpl b/templates/calendarmonth.tmpl
new file mode 100644
index 000000000..37ad78c5c
--- /dev/null
+++ b/templates/calendarmonth.tmpl
@@ -0,0 +1,3 @@
+[[!calendar type=month month=<TMPL_VAR MONTH> year=<TMPL_VAR YEAR> pages="<TMPL_VAR PAGESPEC>"]]
+
+[[!inline pages="creation_month(<TMPL_VAR MONTH>) and creation_year(<TMPL_VAR YEAR>) and <TMPL_VAR PAGESPEC>" show=0 feeds=no reverse=yes]]
diff --git a/templates/calendaryear.tmpl b/templates/calendaryear.tmpl
new file mode 100644
index 000000000..714bd6d47
--- /dev/null
+++ b/templates/calendaryear.tmpl
@@ -0,0 +1 @@
+[[!calendar type=year year=<TMPL_VAR YEAR> pages="<TMPL_VAR PAGESPEC>"]]