{% assign posts = posts | getPopularPosts: analytics %}
<div class="not-prose">
  <h2 class="icon--bold m-0 text-xl flex flex-row items-center font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-8 mb-4 icon--28">
    {% tablericon "flame" "Popular" %}
    <div class="ml-1">Popular posts</div>
  </h2>
  <ul class="list-inside list-disc pl-5 md:pl-10">
    {% for post in posts limit: 5 %}
      <li class="mt-1.5 mb-2">
        <a href="{{post.url}}" title="{{ post.data.title | escape}}">
          {{ post.data.title }}
        </a>
      </li>
    {% endfor %}
  </ul>
</div>