Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2045 from patcon/2045-facebook-share-img
Browse files Browse the repository at this point in the history
Appropriate images when sharing link to Gittip homepage/profile
  • Loading branch information
seanlinsley committed Feb 26, 2014
2 parents f136cb8 + a5f0b48 commit 36170fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<title>{% if title %}{{ title|e }} - {% endif %}Gittip</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ website.asset_url }}/reset.css" type="text/css">
Expand Down
5 changes: 3 additions & 2 deletions www/%username/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ else:
<link rel="payment" type="text/html" title="Give weekly gift on Gittip" href="https://www.gittip.com/{{ username }}/" />
<meta name="twitter:card" content="summary" />
<meta name="og:url" content="https://www.gittip.com/{{ username }}/" />
<meta name="og:type" content="website" />
<meta name="og:type" content="profile" />
<meta name="og:title" content="{{ participant.get_og_title() }}" />
{% if participant.statement %}
<meta name="og:description" content="{{ _clip(I_AM + " " + MAKING + " " + participant.statement, 200)|e }}" />
{% else %}
<meta name="og:description" content="Gittip is a weekly gift exchange." />
{% endif %}
<meta name="og:image" content="{{ participant.get_img_src() }}" />
<meta name="og:image" content="{{ participant.get_img_src(200) }}" />
<meta name="og:image" content="/assets/gittip.opengraph.png" />
{% endblock %}

{% block scripts %}
Expand Down
5 changes: 5 additions & 0 deletions www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ receivers = utter_hack(website.db, website.db.all("""
{% block head %}
<link rel="publisher" href="https://plus.google.com/110591317655791133884">
<meta name="description" content="Inspiring Generosity. Gittip is a weekly gift exchange. Support and thank your favorite people and projects and communities with small cash gifts." />
<meta name="fb:app_id" content="229465400522758" />
<meta name="og:type" content="website" />
<meta name="og:url" content="https://www.gittip.com/" />
<meta name="og:title" content="Gittip" />
<meta name="og:image" content="/assets/gittip.opengraph.png" />
{% endblock %}

{% block scripts %}
Expand Down

0 comments on commit 36170fc

Please sign in to comment.