<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>
        {{- feed.name -}}
    </title>
    <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
    <style>
        body {
            padding: 0;
            margin: 0;
        }

        main {
            margin: 18px 24px;
        }

        article {
            margin: 0;
            padding: 15px 0 0 15px;
            font-size: 0.8em;
        }

        a,
        a:visited,
        a:active {
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }

        article h2 {
            font-size: 24px;
            margin: 0;
        }

        article h2 a,
        article h2 a:visited,
        article h2 a:active {
            color: #009ddb;
        }
        article h2 a:hover {
            color: #00668e;
        }

        article div {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        article div a,
        article div a:visited,
        article div a:active,
        article div a:hover {
            color: #525355;
        }

        article div a {
            padding-right: 5px;
        }

        article div .date {
            color: #6D6E71;
        }

        article .content {
            color: #525355;
        }

        .email-header {
            height: 118px;
            background: #0291ae;
        }

        .email-header-logo {
            display: inline-block;
            height: 100%;
            width: 75%;
            border: none;
        }
        .email-header-logo img {
            padding-top: 30px;
            padding-left: 20px;
            vertical-align: top;
        }

        .footer {
            padding: 0 20px;
            background: #ececec;
            height: 45px;
            margin-top: 20px;
            box-sizing: border-box;
        }

        .footer__list {
            margin: 0;
            padding: 0;
        }

        .footer__item {
            display: inline-block;
            margin-right: 5px;
            padding: 0;
        }

        .footer__link {
            text-shadow: 1px 2px 1px #FFF;
            line-height: 49px;
            display: block;
            padding: 0 10px;
            color: #373739;
            font-size: 12px;
        }

        .footer__link:hover {
            background: #D9D9D9;
        }
    </style>
</head>
<body>

<header class="email-header">
    <div class="email-header-logo">
        <a href="{{ path('app_index_index') }}">
            <img src="data:image/png;base64,[encoded data, 26020 characters]">
        </a>
    </div>
</header>

<main>
    {%- for document in data -%}
    <article>
        <h2>
            <a href="{{ document.permalink }}">
                {{- document.title -}}
            </a>
        </h2>
        <div>
            <a class="source" href="{{- document.source.link -}}">
                {{- document.source.title -}}
            </a>
            <span class="date">
                {{- document.published|date('M d, Y h:i:s A') -}}
            </span>
        </div>
        {%- if (document.image) -%}
            <a href="{{ document.permalink }}"><img src="{{ document.image }}"></a>
        {%- endif -%}
        <p class="content">
            {{- document.content -}}
        </p>
    </article>
    {%- endfor -%}
</main>

<footer class='footer'>
    <ul class="footer__list">
        <li class="footer__item"><a href="https://www.socialhose.io" class="footer__link">SOCIALHOSE.IO<span class="logo-trademark">&reg;</span></a></li>
        <li class="footer__item"><a href="https://www.socialhose.io/en/legal/privacy" class="footer__link">Privacy Policy</a></li>
        <li class="footer__item"><a href="https://www.socialhose.io/en/legal/acceptable-use" class="footer__link">Acceptable Use Policy</a></li>
        <li class="footer__item"><a href="https://www.socialhose.io/en/legal/terms" class="footer__link">Terms &amp; Conditions</a></li>
        <li class="footer__item"><a href="https://www.socialhose.io" class="footer__link">Copyright &copy; 2021 SOCIALHOSE.IO. All rights reserved.</a></li>
    </ul>
</footer>

</body>
</html>