Permalink
Browse files

theme: support large Twitter cards.

  • Loading branch information...
mosra committed Aug 25, 2017
1 parent 75e781d commit 4d362223f107cffd8731a0ea031f9353a0a2c7c4
Showing with 5 additions and 0 deletions.
  1. +5 −0 pelican-theme/templates/article.html
@@ -9,10 +9,15 @@
{% endif %}
<meta name="keywords" content="{{ article.tags|join(", ") }}" />
<meta property="og:title" content="{{ article.title|striptags }}" />
<meta name="twitter:title" content="{{ article.title|striptags }}" />
<meta property="og:url" content="{{ article.url }}" />
<meta name="twitter:url" content="{{ article.url }}" />
<meta property="og:description" content="{{ article.summary|striptags }}" />
<meta name="twitter:description" content="{{ article.summary|striptags }}" />
{% if article.cover %}
<meta property="og:image" content="{{ article|expand_link('cover') }}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="{{ article|expand_link('cover') }}" />
{% endif %}
<meta property="og:type" content="article" />
{% endblock %}

0 comments on commit 4d36222

Please sign in to comment.