diff gpp/templates/home.html @ 20:c0d0779b266f

Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 20:41:37 +0000
parents aa2b41c5212b
children a5f27f25fa52
line wrap: on
line diff
--- a/gpp/templates/home.html	Sun Apr 19 20:10:00 2009 +0000
+++ b/gpp/templates/home.html	Sun Apr 19 20:41:37 2009 +0000
@@ -1,4 +1,5 @@
 {% extends 'base.html' %}
+{% load weblinks_tags %}
 {% block title %}Home{% endblock %}
 {% block content %}
 <h2>Welcome to SurfGuitar101!</h2>
@@ -15,7 +16,7 @@
 Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need
 lots of help for this aspect, as I'm more of a coder than a designer.</p>
 <div class="span-9">
-   Some stuff.
+   {% latest_weblinks %} 
 </div>
 <div class="span-10 last">
    Some more stuff.