chore: analytics
This commit is contained in:
parent
6e5c5c5725
commit
7e0259aafd
14 changed files with 40 additions and 34 deletions
|
@ -15,6 +15,7 @@
|
|||
{% render "../assets/styles/index.css" %}
|
||||
{% endcapture %}
|
||||
<style>{{ css }}</style>
|
||||
<script src="https://cdn.usefathom.com/script.js" data-site="CWSVCDJC" defer></script>
|
||||
<link rel="canonical" href="{{ fullUrl }}" />
|
||||
<meta property="og:title" content="{{ pageTitle }}" />
|
||||
<meta name="description" content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
|
||||
|
|
|
@ -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