<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>{{ article.title }} - {{ site.name }}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />

        <meta property="og:site_name" content="{{ site.name }}" />
        <meta property="og:title" content="{{ article.title }}" />
        <meta property="og:description" content="{{ article.summary }}" />
        <meta property="og:type" content="article" />
        <meta property="og:image" content="{{ site.baseUrl }}/{{ asset(article.custom.photo) }}" />
        <meta property="article:published_time" content="{{ article.createdAt.isoformat }}" />
        <meta property="article:modified_time" content="{{ article.modifiedAt.isoformat }}" />
        <meta property="article:author" content="{{ article.modifiedBy }}" />

        <link rel="stylesheet" href="{{ static('style.css') }}">
    </head>
    <body>
        <h1>{{ site.name }} - {{ site.custom.coolerProperty.get('isMap') }}</h1>
            <article>
                <header>
                    <h2><a href="">{{ article.title }}</a></h2>
                    <h4>{{ article.summary }}</h4>
                    <p>{{ article.createdAt | date("dd.MM.yyyy") }} by {{ article.createdBy }}</p>

                    <!-- article custom properties are converted to lower case -->
                    {% if article.custom.containsKey("customtext") %}
                        <small>{{ article.custom.customtext }}</small>
                    {% endif %}
                </header>

                <div>
                    {{ article.htmlContent | raw }}
                </div>
            </article>
    </body>
</html>