{% if posts or title or text %}
  {% set archiveLink = fn.get_post_type_archive_link('faqs') %}
  <section class="m_faqs" m-pack="premium">
    {% include 'm_components/widgets/headline.twig' with {
      title : title,
      text: text,
      link: archiveLink
    }
    only %}
    {% if posts %}
      <ul class="m_details section-grid">
        {% for post in posts %}
          <li class="m_details-item">
            <strong class="m_details-item__head">{{post.post_title}}</strong>
            <div class="m_details-item__body">
              {{fn.apply_filters('the_content', fn.html_entity_decode(post.post_content))|raw}}
            </div>
          </li>
        {% endfor %}
      </ul>

    {% endif %}
    {% if archive %}
      {% include 'm_components/widgets/link.twig' with {
        textBtn : "View more",
        link: archiveLink
      }
    only %}
    {% endif %}
  </section>
{% endif %}
