chore: analytics
This commit is contained in:
parent
6e5c5c5725
commit
7e0259aafd
14 changed files with 40 additions and 34 deletions
|
@ -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>
|
|
@ -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 %}
|
Reference in a new issue