feat: cms integration

This commit is contained in:
Cory Dransfeldt 2024-06-01 07:16:49 -07:00
parent ff77bdaf36
commit d23243b177
No known key found for this signature in database
1050 changed files with 1032 additions and 27229 deletions

View file

@ -1,14 +1,14 @@
{% assign posts = posts | getPopularPosts: analytics %}
{% if posts.size > 0 %}
{% assign postData = posts | getPopularPosts: analytics %}
{% if postData.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 %}
{% for post in postData limit: 5 %}
<li>
<a class="no-underline" href="{{post.url}}" title="{{ post.data.title | escape}}">
{{ post.data.title }}
<a class="no-underline" href="{{ post.url }}" title="{{ post.title | escape}}">
{{ post.title }}
</a>
</li>
{% endfor %}