]>
Commit | Line | Data |
---|---|---|
970e1075 | 1 | <!DOCTYPE html> |
f3d0cb91 NL |
2 | <html> |
3 | <head> | |
970e1075 | 4 | <meta charset="utf-8"> |
3d995079 | 5 | <title>{{ entry.title|e|raw }}</title> |
970e1075 | 6 | <meta name="viewport" content="initial-scale=1.0"> |
3d995079 | 7 | <meta property="og:title" content="{{ entry.title|e|raw }}" /> |
f0d52417 NL |
8 | <meta property="og:type" content="article" /> |
9 | <meta property="og:url" content="{{ app.request.uri }}" /> | |
9ff628ca | 10 | {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-other_themes.png') %} |
f0d52417 | 11 | {% if entry.previewPicture is not null %} |
020c723e | 12 | {% set picturePath = entry.previewPicture %} |
f0d52417 | 13 | {% endif %} |
020c723e NL |
14 | <meta property="og:image" content="{{ picturePath }}" /> |
15 | <meta name="twitter:card" content="summary" /> | |
16 | <meta name="twitter:image" content="{{ picturePath }}" /> | |
17 | <meta name="twitter:site" content="@wallabagapp" /> | |
3d995079 | 18 | <meta name="twitter:title" content="{{ entry.title|e|raw }}" /> |
b64d8f2c | 19 | <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}…" /> |
151f45db | 20 | {% if app.debug %} |
9ff628ca | 21 | <script src="{{ asset('wallassets/public.dev.js') }}"></script> |
151f45db | 22 | {% else %} |
9ff628ca | 23 | <link rel="stylesheet" href="{{ asset('wallassets/public.css') }}"> |
77255d66 TC |
24 | {% endif %} |
25 | ||
f3d0cb91 NL |
26 | </head> |
27 | <body> | |
970e1075 | 28 | <header class="block"> |
3d995079 | 29 | <h1>{{ entry.title|e|raw }}</h1> |
970e1075 S |
30 | <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a> |
31 | <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p> | |
77c5140b | 32 | {% if entry.previewPicture is not null %} |
970e1075 | 33 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /> |
77c5140b | 34 | {% endif %} |
f3d0cb91 | 35 | </header> |
970e1075 | 36 | <article class="block"> |
f3d0cb91 NL |
37 | {{ entry.content | raw }} |
38 | </article> | |
39 | </body> | |
40 | </html> |