Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
bookshare
Commits
34ed7ccf
Commit
34ed7ccf
authored
May 07, 2015
by
Akshay Karthik
Browse files
Added basic facebook opengraph tags, see
http://ogp.me/
parent
6172c9c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
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