Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Facebook Opengraph tags to pages.

  • Loading branch information...
commit 7414f9d825b0d8fa05b1c2bb02fd0a9be01b4e22 1 parent 8ae39b2
@lethain authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  templates/base.html
  2. +6 −0 templates/sisyphus/page_detail.html
View
1  templates/base.html
@@ -8,6 +8,7 @@
<meta name="keywords" content="Blog Will Larson Programming Life" />
<link rel="alternate" type="application/rss+xml" title="Page Feed" href="/feeds/" />
{% block canonnical %}{% endblock %}
+{% block opengraph %}{% endblock %}
<title>{% block title %}Irrational Exuberance{% endblock %}</title>
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
View
6 templates/sisyphus/page_detail.html
@@ -1,5 +1,11 @@
{% extends "base.html" %}
{% block canonnical %}<link rel="canonical" href="http://{{ domain }}/{{ page.slug }}/">{% endblock %}
+{% block opengraph %}
+<meta property="og:title" content="{{ page.title }}"/>
+<meta property="og:type" content="article"/>
+<meta property="og:url" content="http://{{ domain }}/{{ page.slug }}/"/>
+<meta property="og:description" content="{{ page.summary }}"/>
+{% endblock %}
{% block title %}{{ page.title }} - {{ block.super }}{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.