From: Nicolas LÅ“uillet Date: Mon, 10 Oct 2016 13:20:06 +0000 (+0200) Subject: Merge pull request #2418 from wallabag/add-twitter-cards X-Git-Tag: 2.1.2~23 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=0ff674a9521ee3c659f727ca98a48bd200652f95;hp=3e761063e2fb334f84bebc2375c2b3e3bfe758eb;p=github%2Fwallabag%2Fwallabag.git Merge pull request #2418 from wallabag/add-twitter-cards Added support of Twitter Cards for public articles --- diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index a0a0d3c3..b50226ef 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig @@ -30,11 +30,15 @@ + {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %} {% if entry.previewPicture is not null %} - - {% else %} - + {% set picturePath = entry.previewPicture %} {% endif %} + + + + +