{% extends 'base_m.html.twig' %}
{% block title %}
    {% if item.seo_title is empty %}
        {{ item.title }} - {{ cover('site','title') }}
    {% else %}
        {{ item.seo_title }} - {{ cover('site','title') }}
    {% endif %}
{% endblock %}
{% block keywords %}{{ item.keywords }}{% endblock %}
{% block description %}{{ item.description }}{% endblock %}
{% block container %}
    <nav data-am-widget="menu" class="am-menu  am-menu-default" style="background-color: #f6f6f6;border-bottom: 1px solid #f1f1f1;">
        <a href="javascript: void(0)" class="am-menu-toggle">
            <i class="am-menu-toggle-icon am-icon-bars"></i>
        </a>
        <ul class="am-menu-nav am-avg-sm-4">
            {% for son_cat in cover('category',{'parent_id':current_cat.parent_id,'except':current_cat.id}) %}
                <li><a href="{{ son_cat.url }}">{{ son_cat.title }}</a></li>
            {% endfor %}
        </ul>
    </nav>

   <div class="am-container">
       <article class="am-article">
           <div class="am-article-hd">
               <h1 class="am-article-title">{{ item.title }}</h1>
               <p class="am-article-meta">{{ item.create_time|date('Y-m-d H:i:s') }}</p>
           </div>
           <div class="am-article-bd">
               {{ item.full_text|raw }}
           </div>
       </article>
   </div>
{% endblock %}