templates/blog/detail/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ blog.title }}{% endblock %}
  3. {% block head %}
  4.     {{ parent() }}
  5.     <meta name="description" content="{{ blog.title }}, {{ blog.content|slice(0,50) }}">
  6.     <meta name="keywords" content="{{ blog.title }}">
  7. {% endblock %}
  8. {% block body %}
  9. <main>
  10.     <section class="komili-blog-detail">
  11.         <div class="komili-wrapper">
  12.             <div class="komili-blog-detail-box">
  13.                 <h1 class="bold text-color-p mb-32">{{ blog.title }}</h1>
  14.                 <div class="text">{{ blog.content|raw }}</div>
  15.             </div>
  16.         </div>
  17.     </section>
  18.     <div itemscope itemtype="http://schema.org/NewsArticle">
  19.         <meta itemscope itemprop="mainEntityOfPage"  itemType="https://schema.org/WebPage" itemid="{{ url('blog_detail', {'titleSlug': blog.slug}) }}"/>
  20.         <meta itemprop="headline" content="{{ blog.title }}">
  21.         <h3 itemprop="author" itemscope itemtype="https://schema.org/Person">
  22.             <meta itemprop="name" content="Komili">
  23.         </h3>
  24.         <meta itemprop="description" content="{{ blog.content }}"/>
  25.         <div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
  26.             <meta itemprop="url" content="{{ blog.image.url }}">
  27.         </div>
  28.         <div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
  29.             <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
  30.                 <meta itemprop="url" content="{{ absolute_url('/img/komili-logo.svg') }}">
  31.             </div>
  32.             <meta itemprop="name" content="Komili">
  33.         </div>
  34.         <meta itemprop="datePublished" content="{{ blog.createdAt|date('Y-m-d') }}T{{ blog.createdAt|date('H:s') }}"/>
  35.         <meta itemprop="dateModified" content="{{ blog.updatedAt|date('Y-m-d') }}T{{ blog.updatedAt|date('H:s') }}"/>
  36.     </div>
  37. </main>
  38. {% endblock %}