Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
B
bookshare
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
30
Issues
30
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
34ed7ccf
Commit
34ed7ccf
authored
May 07, 2015
by
Akshay Karthik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic facebook opengraph tags, see
http://ogp.me/
parent
6172c9c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
bookshare/templates/layouts/base.html
bookshare/templates/layouts/base.html
+2
-1
bookshare/trades/templates/detail_listing.html
bookshare/trades/templates/detail_listing.html
+13
-0
No files found.
bookshare/templates/layouts/base.html
View file @
34ed7ccf
{% 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"
>
...
...
bookshare/trades/templates/detail_listing.html
View file @
34ed7ccf
...
...
@@ -4,6 +4,19 @@
SRCT Bookshare
•
{{ 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
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment