Commit 34ed7ccf authored by Akshay Karthik's avatar Akshay Karthik

Added basic facebook opengraph tags, see http://ogp.me/

parent 6172c9c6
{% load piwik_tags %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<html lang="en" prefix="og: http://ogp.me/ns# books: http://ogp.me/ns/books#">
<head>
<meta charset="utf-8">
<meta name="description" content="A place for Mason students to exchange textbooks.">
......@@ -37,6 +37,7 @@
</script>
<link rel="icon" href="{% static 'img/favicon.ico' %}">
<title>{% block title %} {% endblock title %}</title>
{% block social_metadata %} {% endblock social_metadata %}
</head>
<body>
<div id="wrap">
......
......@@ -4,6 +4,19 @@
SRCT Bookshare &bull; {{ listing.title }}
{% endblock title %}
{% block social_metadata %}
<meta property="og:title" content="{{ listing.title }}"/>
<meta property="og:type" content="book"/>
<meta property="og:url" content="{{ request.build_absolute_uri }}"/>
<meta property="og:image" content-"{{ listing.photo.url }}"/>
<meta property="books:author" content="{{ listing.author }}"/>
<meta property="books:isbn" content=" {{ listing.isbn }}"/>
{% if listing.year %}
<meta property="books:release_date" content="{{ listing.year }}"
{% endif %}
{% endblock social_metadata %}
{% block content %}
{% load crispy_forms_tags %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment