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

@ -7,13 +7,19 @@
grid-template-columns: var(--grid-columns-two);
}
.link-box {
article {
border: var(--border-gray);
border-radius: var(--border-radius-slight);
padding: var(--spacing-sm) var(--spacing-md);
margin: 0;
article {
margin: 0;
time {
display: block;
}
h3 {
font-size: var(--font-size-base);
display: inline;
}
}
}

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",