chore: analytics

This commit is contained in:
Cory Dransfeldt 2024-03-24 08:15:21 -07:00
parent 6e5c5c5725
commit 7e0259aafd
No known key found for this signature in database
14 changed files with 40 additions and 34 deletions

View file

@ -3,6 +3,10 @@
{% endcapture %}
<style>{{ css }}</style>
<div class="addon-links__wrapper">
{%- if analytics.size > 0 -%}
<div>{% render "partials/popular-posts.liquid", posts:posts, analytics:analytics %}</div>
{%- endif -%}
{%- if links.size > 0 -%}
<div>{% render "partials/recent-links.liquid", links:links %}</div>
{%- endif -%}
</div>

View file

@ -1,4 +1,5 @@
{% assign posts = posts | getPopularPosts: analytics %}
{% if posts.size > 0 %}
<h2 class="flex--centered">
{% tablericon "flame" "Popular" %}
Popular posts
@ -11,4 +12,5 @@
</a>
</li>
{% endfor %}
</ul>
</ul>
{% endif %}