chore: organize + clean up
This commit is contained in:
parent
ddc2e30375
commit
95581a079c
27 changed files with 172 additions and 15 deletions
16
src/_includes/partials/popular-posts.liquid
Normal file
16
src/_includes/partials/popular-posts.liquid
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% assign posts = collections.posts | getPopularPosts: analytics %}
|
||||
<div class="not-prose">
|
||||
<h2 class="m-0 text-xl flex flex-row items-center font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-8 mb-4">
|
||||
{% heroicon "outline" "fire" "Popular" "height=28" %}
|
||||
<div class="ml-1">Popular posts</div>
|
||||
</h2>
|
||||
<ul class="list-inside list-disc pl-5 md:pl-10">
|
||||
{% for post in posts %}
|
||||
<li class="mt-1.5 mb-2">
|
||||
<a href="{{post.url}}" title="{{ post.data.title | escape}}">
|
||||
{{ post.data.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
Reference in a new issue