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

38 lines
1.8 KiB
Twig
Raw Normal View History

<!DOCTYPE html>
2016-04-10 15:33:15 +00:00
<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 }}" />
2022-05-03 21:28:20 +00:00
{% set picture_path = app.request.schemeAndHttpHost ~ asset('img/logo-wallabag.svg') %}
{% if entry.previewPicture is not null %}
2022-05-03 21:28:20 +00:00
{% set picture_path = entry.previewPicture %}
{% endif %}
2022-05-03 21:28:20 +00:00
<meta property="og:image" content="{{ picture_path }}" />
<meta name="twitter:card" content="summary" />
2022-05-03 21:28:20 +00:00
<meta name="twitter:image" content="{{ picture_path }}" />
<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('wallassets/public.dev.js') }}"></script>
2017-06-22 12:55:49 +00:00
{% else %}
<link rel="stylesheet" href="{{ asset('wallassets/public.css') }}">
2017-06-22 10:15:24 +00:00
{% endif %}
2016-04-10 15:33:15 +00:00
</head>
<body>
<header class="block">
<h1>{{ entry.title|e|raw }}</h1>
<a href="{{ entry.url|e }}" target="_blank" rel="noopener" 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>
2016-04-10 15:33:15 +00:00
</header>
<article class="block">
2022-05-03 21:28:20 +00:00
{{ entry.content|raw }}
2016-04-10 15:33:15 +00:00
</article>
</body>
</html>