chore: linked headers

This commit is contained in:
Cory Dransfeldt 2024-10-28 15:49:47 -07:00
parent 86cde92ba7
commit cb9a3b8f48
No known key found for this signature in database
6 changed files with 21 additions and 17 deletions

View file

@ -1,9 +0,0 @@
<div class="addon-links">
{%- if popularPosts.size > 0 -%}
{% render "blocks/popular-posts.liquid", popularPosts:popularPosts %}
{%- endif -%}
{%- if links.size > 0 -%}
{% render "blocks/recent-links.liquid", links:links %}
{%- endif -%}
</div>

View file

@ -15,6 +15,6 @@
{%- when 'divider' -%}
{{ block.markup | markdown }}
{%- when 'addon_links' -%}
{% render "blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
{% render "blocks/links/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
{%- endcase -%}
{%- endfor -%}

View file

@ -0,0 +1,9 @@
<div class="addon-links">
{%- if popularPosts.size > 0 -%}
{% render "blocks/links/popular-posts.liquid", popularPosts:popularPosts %}
{%- endif -%}
{%- if links.size > 0 -%}
{% render "blocks/links/recent-links.liquid", links:links %}
{%- endif -%}
</div>

View file

@ -1,8 +1,10 @@
{%- if popularPosts.size > 0 -%}
<article>
<h3 class="article">
{% tablericon "chart-bar-popular" "Popular" %}
Popular posts
<h3>
<a class="article" href="/posts">
{% tablericon "chart-bar-popular" "Popular" %}
Popular posts
</a>
</h3>
<ol type="1">
{%- for post in popularPosts limit: 5 -%}

View file

@ -1,8 +1,10 @@
{%- if links.size > 0 -%}
<article>
<h3 class="link">
{% tablericon "link" "Links" %}
Recent links
<h3>
<a class="link" href="/links">
{% tablericon "link" "Links" %}
Recent links
</a>
</h3>
<ul>
{%- for link in links limit: 5 -%}

View file

@ -51,6 +51,6 @@ schema: blog
shows: post.shows
%}
{% render "blocks/banners/coffee.liquid" %}
{% render "blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
{% render "blocks/links/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
</div>
</article>