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
SRCT
bookshare
Commits
a8b1da9e
Commit
a8b1da9e
authored
May 12, 2015
by
Daniel W Bond
Browse files
added twitter info to social metadata block
parent
6ad13da5
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/detail_listing_no_auth.html
View file @
a8b1da9e
...
@@ -5,6 +5,7 @@ SRCT Bookshare • {{ listing.title }}
...
@@ -5,6 +5,7 @@ SRCT Bookshare • {{ listing.title }}
{% endblock title %}
{% endblock title %}
{% block social_metadata %}
{% block social_metadata %}
<!-- Facebook -->
<meta
property=
"og:title"
content=
"{{ listing.title }}"
/>
<meta
property=
"og:title"
content=
"{{ listing.title }}"
/>
<meta
property=
"og:url"
content=
"{{ request.build_absolute_uri }}"
/>
<meta
property=
"og:url"
content=
"{{ request.build_absolute_uri }}"
/>
<meta
property=
"og:type"
content=
"book"
/>
<meta
property=
"og:type"
content=
"book"
/>
...
@@ -15,7 +16,13 @@ SRCT Bookshare • {{ listing.title }}
...
@@ -15,7 +16,13 @@ SRCT Bookshare • {{ listing.title }}
{% if listing.year %}
{% if listing.year %}
<meta
property=
"books:release_date"
content=
"{{ listing.year }}"
/>
<meta
property=
"books:release_date"
content=
"{{ listing.year }}"
/>
{% endif %}
{% endif %}
<!-- Twitter -->
<meta
name=
"twitter:card"
content=
"summary"
/>
<meta
name=
"twitter:site"
content=
"@MasonSRCT"
/>
<meta
name=
"twitter:title"
content=
"{{ listing.title }}"
/>
<meta
name=
"twitter:description"
content=
"is up for exchange on SRCT Bookshare! Log in with your Mason username and password to see more!"
/>
<meta
name=
"twitter:image"
content=
"{{ listing.photo.url }}"
/>
<meta
name=
"twitter:url"
content=
"{{ request.build_absolute_uri }}"
/>
{% endblock social_metadata %}
{% endblock social_metadata %}
{% block content %}
{% block content %}
...
...
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