Skip to content

Commit

Permalink
Modified header template to include Twitter Card meta tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjoyce committed Jun 27, 2013
1 parent a8f7bc6 commit 3d84039
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
{if $rss_link != ''}
<link rel="alternate" type="application/rss+xml" title="{$page_title}" href="{$rss_link}">
{/if}
{if $leaflet->leaflet_id>0}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@electionleaflet">
<meta name="twitter:title" content="{$leaflet->title}">
<meta name="twitter:description" content="{$leaflet->description}">
<meta name="twitter:creator" content="@electionleaflet">
<meta name="twitter:image:src" content="{$leaflet_images[0]->medium_url()}">
{/if}
</head>

<body {if $is_full_view == true}class="full-width"{/if}>
Expand Down

0 comments on commit 3d84039

Please sign in to comment.