blog: simplify archive page
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 23 Oct 2014 15:25:38 +0000 (17:25 +0200)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 23 Oct 2014 15:25:38 +0000 (17:25 +0200)
13 files changed:
blog.mdwn
blog/archives.mdwn
blog/archives/2006.mdwn [deleted file]
blog/archives/2007.mdwn [deleted file]
blog/archives/2008.mdwn [deleted file]
blog/archives/2009.mdwn [deleted file]
blog/archives/2010.mdwn [deleted file]
blog/archives/2011.mdwn [deleted file]
blog/archives/2012.mdwn [deleted file]
blog/archives/2013.mdwn [deleted file]
blog/archives/2014.mdwn [deleted file]
local.css
templates/inline-monthly-archive.tmpl [new file with mode: 0644]

index 2acc833..9d0548a 100644 (file)
--- a/blog.mdwn
+++ b/blog.mdwn
@@ -31,3 +31,5 @@ The blog is mostly in [[English|tags/lang/english]] with some bits of
 
 [[!inline pages="blog/posts/*/*/* and !blog/posts/*/*/*/* and !link(tags/draft)"
 show="10" actions="yes" description="I'm in a Hurry - Zack's Blog"]]
+
+See the [[archives]] for previous posts.
index 98e0b94..4bfd57c 100644 (file)
@@ -1,2 +1,16 @@
-Here you can find the yearly and monthly archives of [[my_blog|blog]].
-[[!inline pages="blog/archives/*" archive="yes"]]
+Here you can find the monthly archives of [[my_blog|blog]].
+
+<div class="monthly-archives">
+<ul>
+<li>2014: [[!inline pages="blog/archives/2014/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2013: [[!inline pages="blog/archives/2013/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2012: [[!inline pages="blog/archives/2012/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2011: [[!inline pages="blog/archives/2011/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2010: [[!inline pages="blog/archives/2010/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2009: [[!inline pages="blog/archives/2009/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2008: [[!inline pages="blog/archives/2008/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2007: [[!inline pages="blog/archives/2007/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+<li>2006: [[!inline pages="blog/archives/2006/*" reverse="yes" feeds="no" template="inline-monthly-archive"]]</li>
+</ul>
+</div>
+
diff --git a/blog/archives/2006.mdwn b/blog/archives/2006.mdwn
deleted file mode 100644 (file)
index da3c0e9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2006"]]
diff --git a/blog/archives/2007.mdwn b/blog/archives/2007.mdwn
deleted file mode 100644 (file)
index 4c760a7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2007"]]
diff --git a/blog/archives/2008.mdwn b/blog/archives/2008.mdwn
deleted file mode 100644 (file)
index cca39f8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2008"]]
diff --git a/blog/archives/2009.mdwn b/blog/archives/2009.mdwn
deleted file mode 100644 (file)
index 1bc2d0c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2009"]]
diff --git a/blog/archives/2010.mdwn b/blog/archives/2010.mdwn
deleted file mode 100644 (file)
index 696f9e7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2010"]]
diff --git a/blog/archives/2011.mdwn b/blog/archives/2011.mdwn
deleted file mode 100644 (file)
index 70f2be6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2011"]]
diff --git a/blog/archives/2012.mdwn b/blog/archives/2012.mdwn
deleted file mode 100644 (file)
index d6d8e15..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2012"]]
diff --git a/blog/archives/2013.mdwn b/blog/archives/2013.mdwn
deleted file mode 100644 (file)
index ace0927..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2013"]]
diff --git a/blog/archives/2014.mdwn b/blog/archives/2014.mdwn
deleted file mode 100644 (file)
index cc4ca0a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[[!template id=archive_year year="2014"]]
index cc91a7e..76dcd99 100644 (file)
--- a/local.css
+++ b/local.css
@@ -222,3 +222,9 @@ table.identikit tr td {
     float: right;
     font-size: small;
 }
+
+.monthly-archives ul {
+  margin: 0;
+  padding-left: 1em;
+  list-style-type: none;
+}
diff --git a/templates/inline-monthly-archive.tmpl b/templates/inline-monthly-archive.tmpl
new file mode 100644 (file)
index 0000000..258dcc5
--- /dev/null
@@ -0,0 +1,3 @@
+<span class="inline-monthly-archive">
+<a href="<TMPL_VAR PAGEURL>">[<TMPL_VAR TITLE>]</a>
+</span>