aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-07 09:05:18 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-07 09:05:18 +0200
commitf0d52417fbcb3427065ec3b0b8cf33f12f368f8c (patch)
treef949652ecfda673a2bec416d3eec751815402bb8 /src/Wallabag/CoreBundle/Resources/views/themes/common
parent9d127b3b9365c73bc393bc303545f24c159cee31 (diff)
downloadwallabag-f0d52417fbcb3427065ec3b0b8cf33f12f368f8c.tar.gz
wallabag-f0d52417fbcb3427065ec3b0b8cf33f12f368f8c.tar.zst
wallabag-f0d52417fbcb3427065ec3b0b8cf33f12f368f8c.zip
Added OpenGraph support for public articles
Fix #2289
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig9
1 files changed, 8 insertions, 1 deletions
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 b82b3d3d..bf44ced7 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
@@ -27,11 +27,18 @@
27 width: 600px; 27 width: 600px;
28 } 28 }
29 </style> 29 </style>
30 <meta property="og:title" content="{{ entry.title | raw }}" />
31 <meta property="og:type" content="article" />
32 <meta property="og:url" content="{{ app.request.uri }}" />
33 {% if entry.previewPicture is not null %}
34 <meta property="og:image" content="{{ entry.previewPicture }}" />
35 {% endif %}
30 </head> 36 </head>
31 <body> 37 <body>
32 <header> 38 <header>
33 <h1>{{ entry.title | raw }}</h1> 39 <h1>{{ entry.title | raw }}</h1>
34 <span><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool">{{ entry.domainName|removeWww }}</a></span> 40 <div><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool">{{ entry.domainName|removeWww }}</a></div>
41 <div>{{ "entry.public.shared_by_wallabag"|trans|raw }}</div>
35 </header> 42 </header>
36 <article> 43 <article>
37 {{ entry.content | raw }} 44 {{ entry.content | raw }}