aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
blob: b9fcc005815da5687ebec7144185d9ed36319d97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{ entry.title|e|raw }}</title>
        <meta name="viewport" content="initial-scale=1.0">
        <meta property="og:title" content="{{ entry.title|e|raw }}" />
        <meta property="og:type" content="article" />
        <meta property="og:url" content="{{ app.request.uri }}" />
        {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-wallabag.svg') %}
        {% if entry.previewPicture is not null %}
            {% set picturePath = entry.previewPicture %}
        {% endif %}
        <meta property="og:image" content="{{ picturePath }}" />
        <meta name="twitter:card" content="summary" />
        <meta name="twitter:image" content="{{ picturePath }}" />
        <meta name="twitter:site" content="@wallabagapp" />
        <meta name="twitter:title" content="{{ entry.title|e|raw }}" />
        <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
        {% if app.debug %}
            <script src="{{ asset('wallassets/public.dev.js') }}"></script>
        {% else %}
            <link rel="stylesheet" href="{{ asset('wallassets/public.css') }}">
        {% endif %}

    </head>
    <body>
        <header class="block">
            <h1>{{ entry.title|e|raw }}</h1>
            <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a>
            <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p>
            {% if entry.previewPicture is not null %}
                <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" />
            {% endif %}
        </header>
        <article class="block">
            {{ entry.content | raw }}
        </article>
    </body>
</html>