This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/_includes/partials/widgets/popular-posts.liquid

15 lines
No EOL
373 B
Text

{% if popularPosts.size > 0 %}
<h3 class="link-list-header flex-centered">
{% tablericon "flame" "Popular" %}
Popular posts
</h3>
<ul class="link-list">
{% for post in popularPosts limit: 5 %}
<li>
<a class="no-underline" href="{{ post.slug }}" title="{{ post.title | escape}}">
{{ post.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}