diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-07 14:30:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 14:30:46 +0200 |
commit | c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa (patch) | |
tree | 1b9f358afc7483095323eca874bc1adf7aaea2ff /src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | |
parent | bf71a734f64a911549e188a5c69ac8e08eec896e (diff) | |
parent | 21d82c3c5d211ee3e30cf71d2de3ebac0d63da54 (diff) | |
download | wallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.tar.gz wallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.tar.zst wallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.zip |
Merge pull request #2383 from wallabag/add-info-publich-articles
Added OpenGraph support for public articles
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | 9 |
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..36c49e04 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({'%wallabag_instance%': url('homepage')})|raw }}</div> | ||
35 | </header> | 42 | </header> |
36 | <article> | 43 | <article> |
37 | {{ entry.content | raw }} | 44 | {{ entry.content | raw }} |