3c85041c61c2

Add the post stats.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 25 Dec 2009 18:47:56 -0500
parents a5d036150749
children 3e6549916647
branches/tags (none)
files layout/_post.html media/css/base.css

Changes

--- a/layout/_post.html	Fri Dec 25 15:26:28 2009 -0500
+++ b/layout/_post.html	Fri Dec 25 18:47:56 2009 -0500
@@ -3,6 +3,8 @@
 {% block content %}
     <div id="leaf-title"><h1>{{ page.title|safe|typogrify }}</h1></div>
     
+    <div id="leaf-stats"><p>Posted on {{ page.created|date:"l, F j, Y" }} ({{ page.created|timesince }} ago).</p></div>
+    
     <div id="leaf-content">
         {% filter typogrify %}
             {% article %}
--- a/media/css/base.css	Fri Dec 25 15:26:28 2009 -0500
+++ b/media/css/base.css	Fri Dec 25 18:47:56 2009 -0500
@@ -179,7 +179,14 @@
     
 }
 span.page-title span.amp {
-	font-weight: normal;
+    font-weight: normal;
     font-size: 1.1em;
-	line-height: 0.5em;
+    line-height: 0.5em;
+}
+
+/* Article styles. */
+div#leaf-stats p {
+    color: #666;
+    margin-top: -1em;
+    margin-bottom: 1em;
 }
\ No newline at end of file