mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-26 09:00:48 +00:00
77c5140bed
I’ve increase the width of the page 900px, 600px looks too small for me. Should we use something like 90% instead?
59 lines
2.2 KiB
Twig
59 lines
2.2 KiB
Twig
<html>
|
|
<head>
|
|
<title>{{ entry.title|e|raw }}</title>
|
|
<style>
|
|
body {
|
|
margin: 10px;
|
|
font-family: 'Roboto',Verdana,Geneva,sans-serif;
|
|
font-size: 16px;
|
|
color: #000;
|
|
}
|
|
header {
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
a,
|
|
a:hover,
|
|
a:visited {
|
|
color: #000;
|
|
}
|
|
|
|
article {
|
|
margin: 0 auto;
|
|
width: 900px;
|
|
}
|
|
</style>
|
|
<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 }}" />
|
|
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}…" />
|
|
</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 %}
|
|
</header>
|
|
<article>
|
|
{{ entry.content | raw }}
|
|
</article>
|
|
</body>
|
|
</html>
|