]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
Add css on share public page
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / common / Entry / share.html.twig
1 <html>
2 <head>
3 <title>{{ entry.title|e|raw }}</title>
4 <meta property="og:title" content="{{ entry.title|e|raw }}" />
5 <meta property="og:type" content="article" />
6 <meta property="og:url" content="{{ app.request.uri }}" />
7 {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %}
8 {% if entry.previewPicture is not null %}
9 {% set picturePath = entry.previewPicture %}
10 {% endif %}
11 <meta property="og:image" content="{{ picturePath }}" />
12 <meta name="twitter:card" content="summary" />
13 <meta name="twitter:image" content="{{ picturePath }}" />
14 <meta name="twitter:site" content="@wallabagapp" />
15 <meta name="twitter:title" content="{{ entry.title|e|raw }}" />
16 <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
17 {% if not app.debug %}
18 <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
19 {% endif %}
20
21 <script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
22 </head>
23 <body>
24 <header>
25 <h1>{{ entry.title|e|raw }}</h1>
26 <div><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a></div>
27 <div>{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</div>
28
29 {% if entry.previewPicture is not null %}
30 <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /></div>
31 {% endif %}
32 </header>
33 <article>
34 {{ entry.content | raw }}
35 </article>
36 </body>
37 </html>