wallabag/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig

39 lines
1.9 KiB
Twig
Raw Normal View History

2016-04-10 15:33:15 +00:00
<html>
<head>
<title>{{ entry.title|e|raw }}</title>
<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('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %}
{% 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 }}" />
2016-10-21 08:51:20 +00:00
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
2017-06-22 12:55:49 +00:00
{% if app.debug %}
<script src="{{ asset('bundles/wallabagcore/public.dev.js') }}"></script>
{% else %}
2017-06-22 10:15:24 +00:00
<link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
{% endif %}
2016-04-10 15:33:15 +00:00
</head>
<body>
<header>
<h1>{{ entry.title|e|raw }}</h1>
<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>
<div>{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</div>
{% if entry.previewPicture is not null %}
<div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /></div>
{% endif %}
2016-04-10 15:33:15 +00:00
</header>
<article>
{{ entry.content | raw }}
</article>
</body>
</html>