view bns_website/templates/base.html @ 41:9ce9f77d6cde

I added a get_absolute_url() to the news model so I can use that in the news template tag to create a link to the correct anchor on the news list page. The link works, but for some reason it goes to the beginning of the article content and not to the title. I've played around with the article tag and making an aside tag with an id and for whatever reason it always goes to the article content.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 06 Nov 2011 22:13:27 -0600
parents 55e1d68da925
children a4e0b03e5c00
line wrap: on
line source
<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>Brave New Surf | {% block title %}{% endblock %}</title>
<meta charset="utf-8" />
{% block custom_meta %}{% endblock %}
<link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico">
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/base.css">
{% block custom_css %}{% endblock %}
{% block custom_js %}{% endblock %}
</head>
<body>{% block begin_body %}{% endblock %}

<div class="container">
   {% block content %}{% endblock %}
</div>

<footer class="footer">
<div class="container">
   <p class="pull-right"><a href="#">Back to top</a></p>
   <p>Brave New Surf &copy; 2011 <a href="http://www.doublecrownrecords.com/">Double Crown Records</a></p>
   <p>Other footer type stuff goes down here.</p>
   <p><small>FENDER, JAZZMASTER and the distinctive headstock design commonly found on FENDER guitars are registered trademarks of <a href="http://www.fender.com">Fender Musical Instruments Corporation</a> and used herein with express written permission. All rights reserved.</small></p>
</div>
</footer>

{% block end_body %}{% endblock %}
</body>
</html>