Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
theme: support large Twitter cards.
  • Loading branch information
mosra committed Aug 25, 2017
1 parent 75e781d commit 4d36222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pelican-theme/templates/article.html
Expand Up @@ -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 %}
Expand Down

0 comments on commit 4d36222

Please sign in to comment.