{% extends 'base.html.twig' %}
{% block title %}{{ blog.title }}{% endblock %}
{% block head %}
{{ parent() }}
<meta name="description" content="{{ blog.title }}, {{ blog.content|slice(0,50) }}">
<meta name="keywords" content="{{ blog.title }}">
{% endblock %}
{% block body %}
<main>
<section class="komili-blog-detail">
<div class="komili-wrapper">
<div class="komili-blog-detail-box">
<h1 class="bold text-color-p mb-32">{{ blog.title }}</h1>
<div class="text">{{ blog.content|raw }}</div>
</div>
</div>
</section>
<div itemscope itemtype="http://schema.org/NewsArticle">
<meta itemscope itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" itemid="{{ url('blog_detail', {'titleSlug': blog.slug}) }}"/>
<meta itemprop="headline" content="{{ blog.title }}">
<h3 itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="Komili">
</h3>
<meta itemprop="description" content="{{ blog.content }}"/>
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="{{ blog.image.url }}">
</div>
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="{{ absolute_url('/img/komili-logo.svg') }}">
</div>
<meta itemprop="name" content="Komili">
</div>
<meta itemprop="datePublished" content="{{ blog.createdAt|date('Y-m-d') }}T{{ blog.createdAt|date('H:s') }}"/>
<meta itemprop="dateModified" content="{{ blog.updatedAt|date('Y-m-d') }}T{{ blog.updatedAt|date('H:s') }}"/>
</div>
</main>
{% endblock %}