templates for archive generation
authorStefano Zacchiroli <zack@debian.org>
Wed, 26 Dec 2007 18:16:54 +0000 (19:16 +0100)
committerStefano Zacchiroli <zack@debian.org>
Wed, 26 Dec 2007 18:16:54 +0000 (19:16 +0100)
20 files changed:
blog/archives/2006.mdwn
blog/archives/2006/09.mdwn
blog/archives/2006/10.mdwn
blog/archives/2006/11.mdwn
blog/archives/2006/12.mdwn
blog/archives/2007.mdwn
blog/archives/2007/01.mdwn
blog/archives/2007/02.mdwn
blog/archives/2007/03.mdwn
blog/archives/2007/04.mdwn
blog/archives/2007/05.mdwn
blog/archives/2007/06.mdwn
blog/archives/2007/07.mdwn
blog/archives/2007/08.mdwn
blog/archives/2007/09.mdwn
blog/archives/2007/10.mdwn
blog/archives/2007/11.mdwn
blog/archives/2007/12.mdwn
templates/archive_month.mdwn [new file with mode: 0644]
templates/archive_year.mdwn [new file with mode: 0644]

index be168d4..bc575f3 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2006-01-01"]]
-[[inline pages="blog/posts/2006/*/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_year year="2006"]]
index f4c6377..b069b73 100644 (file)
@@ -1,3 +1,2 @@
 [[meta date="2006-09-01"]]
-[[inline pages="blog/posts/2006/09/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2006" month="09"]]
index 4bcd7d8..7838560 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2006-10-01"]]
-[[inline pages="blog/posts/2006/10/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2006" month="10"]]
index 7478618..6f3ad09 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2006-11-01"]]
-[[inline pages="blog/posts/2006/11/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2006" month="11"]]
index 6fa4caa..4d943c8 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2006-12-01"]]
-[[inline pages="blog/posts/2006/12/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2006" month="12"]]
index 3ff1576..9a3d8ef 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-01-01"]]
-[[inline pages="blog/posts/2007/*/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_year year="2007"]]
index 4c0905f..a485a1e 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-01-01"]]
-[[inline pages="blog/posts/2007/01/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="01"]]
index 9ffae15..a17777c 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-02-01"]]
-[[inline pages="blog/posts/2007/02/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="02"]]
index b1741a2..c10f163 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-03-01"]]
-[[inline pages="blog/posts/2007/03/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="03"]]
index 124d1c7..f436649 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-04-01"]]
-[[inline pages="blog/posts/2007/04/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="04"]]
index 88c8078..81f4850 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-05-01"]]
-[[inline pages="blog/posts/2007/05/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="05"]]
index 5af34c9..9f6e09a 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-06-01"]]
-[[inline pages="blog/posts/2007/06/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="06"]]
index 96857d4..d1f6530 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-07-01"]]
-[[inline pages="blog/posts/2007/07/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="07"]]
index d82089a..ec4fd3e 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-08-01"]]
-[[inline pages="blog/posts/2007/08/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="08"]]
index 1418df9..c2712de 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-09-01"]]
-[[inline pages="blog/posts/2007/09/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="09"]]
index a899f94..848a71f 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-10-01"]]
-[[inline pages="blog/posts/2007/10/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="10"]]
index 742fec2..281847f 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-11-01"]]
-[[inline pages="blog/posts/2007/11/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="11"]]
index 8ae5808..469230f 100644 (file)
@@ -1,3 +1 @@
-[[meta date="2007-12-01"]]
-[[inline pages="blog/posts/2007/12/* and !blog/posts/*/*/*/* and
-!link(tags/draft)" archive="yes"]]
+[[template id=archive_month year="2007" month="12"]]
diff --git a/templates/archive_month.mdwn b/templates/archive_month.mdwn
new file mode 100644 (file)
index 0000000..7af07d9
--- /dev/null
@@ -0,0 +1,3 @@
+[[meta date="<TMPL_VAR year>-<TMPL_VAR month>-01"]]
+[[inline pages="blog/posts/<TMPL_VAR year>/<TMPL_VAR month>/* and
+!blog/posts/*/*/*/* and !link(tags/draft)" archive="yes"]]
diff --git a/templates/archive_year.mdwn b/templates/archive_year.mdwn
new file mode 100644 (file)
index 0000000..cd93ab8
--- /dev/null
@@ -0,0 +1,3 @@
+[[meta date="<TMPL_VAR year>-01-01"]]
+[[inline pages="blog/posts/<TMPL_VAR year>/*/* and !blog/posts/*/*/*/* and
+!link(tags/draft)" archive="yes"]]