Skip to content

Commit

Permalink
Add a OpenGraph compatible Python icon.
Browse files Browse the repository at this point in the history
Quoting:

"Please define a chosen image using the og:image metatag,
and use an image that's at least 200x200px and is
accessible from Facebook."
  • Loading branch information
berkerpeksag committed Sep 18, 2015
1 parent ac2b2d0 commit 5aa65b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added static/opengraph-icon-200x200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<meta property="og:title" content="{% block og_title %}Welcome to {{ SITE_INFO.site_name }}{% endblock %}">
<meta property="og:description" content="{% block og-descript %}{{ SITE_INFO.site_descript }}{% endblock %}">
{# a path to an image used on the page. helpful for telling crawlers what image to use for a page preview. #}
<meta property="og:image" content="{% block og-image %}{{ GET_HOST_WITH_SCHEME }}{{ STATIC_URL }}img/python-logo-large.png{% endblock %}">
<meta property="og:image" content="{% block og-image %}{{ GET_HOST_WITH_SCHEME }}{{ STATIC_URL }}opengraph-icon-200x200.png{% endblock %}">
{# permalink to the current page #}
<meta property="og:url" content="{% block og-url %}{{ request.build_absolute_uri }}{% endblock %}">

Expand Down

0 comments on commit 5aa65b9

Please sign in to comment.