From d38c4094a1aef8be93218adeefe66b20308d96e3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Nov 2014 01:12:26 -0500 Subject: Initial website Markdown conversion. --- themes/lv2/templates/includes/twitter_cards.html | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 themes/lv2/templates/includes/twitter_cards.html (limited to 'themes/lv2/templates/includes/twitter_cards.html') diff --git a/themes/lv2/templates/includes/twitter_cards.html b/themes/lv2/templates/includes/twitter_cards.html new file mode 100644 index 0000000..3145915 --- /dev/null +++ b/themes/lv2/templates/includes/twitter_cards.html @@ -0,0 +1,27 @@ +{% if TWITTER_CARDS and USE_OPEN_GRAPH %} + {# Do not include duplicates tag with og ones. #} + {# Twitter is able to infer them from og. #} + + {% if TWITTER_USERNAME %} + + + {% endif %} + + {% if article %} + {% if article.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} + {% elif page %} + {% if page.og_image %} + + {% elif OPEN_GRAPH_IMAGE %} + + {% endif %} + {% endif %} +{% endif %} -- cgit v1.2.1