fix url / title meta stuff

This commit is contained in:
Sanj 2012-06-12 02:16:08 +05:30
parent 30b17f94a3
commit e1622b6a10
3 changed files with 8 additions and 1 deletions

View File

@ -120,7 +120,8 @@ def render_object(request, module_slug):
item_data = obj.insidepage_dict(request)
else: #Should be a better way to tell the template a search returned no result
obj = {
'get_title': 'No Results Found'
'get_title': 'No Results Found',
'get_absolute_url': tab.get_absolute_url()
}
item_data = {
'html': 'The search query you entered did not return any results.'

View File

@ -2,9 +2,11 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{% block meta %}
<meta name="keywords" content="Theatre, ITF, India, Best Practices, Theatre Resources" />
<meta name="title" content="India Theatre Forum" />
<meta name="description" content="India Theatre Forum: Best practices and theatre resources for the theatre community in India." />
{% endblock %}
<title>{% block title %} {% endblock %}</title>
<link rel="stylesheet" href="/static/css/reset.css" type="text/css" />
<link rel="stylesheet" href="/static/css/noel/main.css" type="text/css" />

View File

@ -7,6 +7,10 @@
<link rel="stylesheet" href="/static/css/noel/inner-details.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="/static/css/jquery.tooltip.css" />
<link rel="canonical" href="http://theatreforum.in{{ item.get_absolute_url }}" />
{% block meta %}
<meta name="title" content="{{ item.get_title }}" />
<meta name="description" content="{{ tab.text }}" />
{% endblock %}
<!--
<script type="text/javascript" src="/static/js/history/history.js"></script>
<script type="text/javascript" src="/static/js/history/amplify.store.js"></script>