Skip to content

Instantly share code, notes, and snippets.

@grobertson
Created May 31, 2013 19:07
Show Gist options
  • Save grobertson/5687195 to your computer and use it in GitHub Desktop.
Save grobertson/5687195 to your computer and use it in GitHub Desktop.
{# Meta items within this block are dynamic. Things like facebook app_id which persist across all pages are found in base.html #}
{% if article_detail.title %}
{# This is a single article #}
<title>The Daily Dot - {{ article_detail.title }}</title>
<link rel="canonical" href="http://www.dailydot.com{{ article_detail.get_absolute_url }}">
<link rel="shortlink" href="{{ article_detail.get_short_link }}">
<meta name="keywords" content="{{ article_detail.get_keywords }}">
<meta property="og:url" content="http://www.dailydot.com{{ article_detail.get_absolute_url }}">
{# since we load media urls with a relative protocol, the proto must be included #}
<meta property="og:image" content="http:{{ article_detail.lead_art.url }}">
<meta property="og:title" content="{{ article_detail.title|striptags|safe }}">
<meta property="og:site_name" content="The Daily Dot">
<meta property="og:description" content="{{ article_detail.summary|striptags|safe }}">
<meta property="og:type" content="article">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment