chore(links.html/css): refactor layout to properly use article tags and headers for each link item

This commit is contained in:
Cory Dransfeldt 2025-05-08 15:09:35 -07:00
parent e71eb1c185
commit bb72776be8
No known key found for this signature in database
4 changed files with 47 additions and 146 deletions

View file

@ -17,16 +17,14 @@ permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
{% endif %}
<div class="link-grid">
{% for link in pagination.items %}
<div class="link-box">
<article>
<time datetime="{{ link.date }}">{{ link.date | date: "%B %e, %Y" }}</time>
<article>
<a href="{{ link.link }}" title="{{ link.title | escape }}"><strong>{{ link.title }}</strong></a>
{% if link.author %} via <a href="{{ link.author.url }}">{{ link.author.name }}</a>{% endif %}
{% render "blocks/tags.liquid",
tags:link.tags
%}
</article>
</div>
<a href="{{ link.link }}" title="{{ link.title | escape }}"><h3>{{ link.title }}</h3></a>
{% if link.author %}&puncsp;via&puncsp;<a href="{{ link.author.url }}">{{ link.author.name }}</a>{% endif %}
{% render "blocks/tags.liquid",
tags:link.tags
%}
</article>
{% endfor %}
</div>
{% render "nav/paginator.liquid",