chore: organization
This commit is contained in:
parent
1932b02c8f
commit
e3e4ab0335
39 changed files with 44 additions and 44 deletions
16
src/_includes/partials/widgets/popular-posts.liquid
Normal file
16
src/_includes/partials/widgets/popular-posts.liquid
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% assign posts = posts | getPopularPosts: analytics %}
|
||||
{% if posts.size > 0 %}
|
||||
<h2 class="link-list-header flex-centered">
|
||||
{% tablericon "flame" "Popular" %}
|
||||
Popular posts
|
||||
</h2>
|
||||
<ul class="link-list">
|
||||
{% for post in posts limit: 5 %}
|
||||
<li>
|
||||
<a class="no-underline" href="{{post.url}}" title="{{ post.data.title | escape}}">
|
||||
{{ post.data.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
Reference in a new issue