115fd0ac6843

Cleanup Tuesdays - Cleaned up the entry URLs in the templates.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 24 Mar 2009 19:42:38 -0400
parents 9f1be6d74c1b
children ee7c7ef51fdb
branches/tags (none)
files templates/blog/entry.html templates/blog/list.html

Changes

--- a/templates/blog/entry.html	Tue Mar 24 18:51:21 2009 -0400
+++ b/templates/blog/entry.html	Tue Mar 24 19:42:38 2009 -0400
@@ -16,7 +16,7 @@
 {% block content %}
     <div id="blog-entry">
         <h1 id="blog-entry-title">
-            <a href="{% url blog-entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
+            <a href="{{ entry.get_absolute_url }}">
                 {{ entry.title|typogrify }}
             </a>
         </h1>
--- a/templates/blog/list.html	Tue Mar 24 18:51:21 2009 -0400
+++ b/templates/blog/list.html	Tue Mar 24 19:42:38 2009 -0400
@@ -6,7 +6,7 @@
         {% for entry in entries %}
             <div class="blog-list-entry">
                 <h2 class="blog-list-entry-title">
-                    <a href="{% url blog-entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
+                    <a href="{{ entry.get_absolute_url }}">
                         {{ entry.title|typogrify }}
                     </a>
                 </h2>