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' -%} {%- when 'divider' -%}
{{ block.markup | markdown }} {{ block.markup | markdown }}
{%- when 'addon_links' -%} {%- 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 -%} {%- endcase -%}
{%- endfor -%} {%- 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 -%} {%- if popularPosts.size > 0 -%}
<article> <article>
<h3 class="article"> <h3>
{% tablericon "chart-bar-popular" "Popular" %} <a class="article" href="/posts">
Popular posts {% tablericon "chart-bar-popular" "Popular" %}
Popular posts
</a>
</h3> </h3>
<ol type="1"> <ol type="1">
{%- for post in popularPosts limit: 5 -%} {%- for post in popularPosts limit: 5 -%}

View file

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

View file

@ -51,6 +51,6 @@ schema: blog
shows: post.shows shows: post.shows
%} %}
{% render "blocks/banners/coffee.liquid" %} {% 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> </div>
</article> </article>