summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-10 21:44:37 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-10 21:49:43 -0400
commita25d8f992bc3e39cf39954475f31b83dabbf2374 (patch)
treec91cc9823e0c8d105ecb8cdb717d359e9c6a4945
parente0d1e84b8db54338512ee1ca4b20817d4e338362 (diff)
inline: Add author info to archive display.
This won't change it normally, and is useful if using archive format to display some aggregated feed titles.
-rw-r--r--debian/changelog1
-rw-r--r--templates/archivepage.tmpl10
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index a82369f9f..b7779600e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ ikiwiki (3.10) UNRELEASED; urgency=low
* Add missing newline to Confirm Password prompt.
* Add missing permalink support to archivepage and titlepage templates.
* debian/control: Wrap fields.
+ * inline: Add author info to archive display.
-- Joey Hess <joeyh@debian.org> Sat, 04 Apr 2009 17:47:36 -0400
diff --git a/templates/archivepage.tmpl b/templates/archivepage.tmpl
index fe1f0ab92..28800e763 100644
--- a/templates/archivepage.tmpl
+++ b/templates/archivepage.tmpl
@@ -6,6 +6,14 @@
</TMPL_IF>
<i>
Posted <TMPL_VAR CTIME>
+<TMPL_IF NAME="AUTHOR">
+by <span class="author">
+<TMPL_IF NAME="AUTHORURL">
+<a href="<TMPL_VAR AUTHORURL>"><TMPL_VAR AUTHOR></a>
+<TMPL_ELSE>
+<TMPL_VAR AUTHOR>
+</TMPL_IF>
+</span>
+</TMPL_IF>
</i>
-
</p>