h3 -> h2 in blog archive

This commit is contained in:
madrilene 2022-12-13 16:42:34 +01:00
parent 43914d6fc0
commit 1c48e47773
5 changed files with 30 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
"name": "eleventy-excellent",
"version": "1.1.5",
"version": "1.1.4",
"engines": {
"node": ">=16.x.x"
},

View file

@ -1,7 +1,7 @@
<li class="card flow clickable-card overflow-hidden">
<h3>
<h2>
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
</h3>
</h2>
{% set definedDate = post.date %} {% include "partials/date.njk" %}
<p>{{ post.data.description }}</p>
</li>

View file

@ -16,7 +16,16 @@ layout: base
<article class="wrapper region">
<ul class="grid mt-l-xl" role="list" data-rows="masonry" data-layout="50-50">
{% set postslist = collections.posts %} {% for post in postslist %} {% include
"partials/blog-card.njk" %} {% endfor %}
{% set postslist = collections.posts %} {% for post in postslist %}
<li class="card flow clickable-card overflow-hidden">
<h2>
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
</h2>
{% set definedDate = post.date %} {% include "partials/date.njk" %}
<p>{{ post.data.description }}</p>
</li>
{% endfor %}
</ul>
</article>

View file

@ -28,7 +28,16 @@ layout: base
<!-- TODO: duplicate of partials/blog.njk -->
<ul class="wrapper grid mt-l-xl" role="list" data-rows="masonry" data-layout="50-50">
{% set postslist = collections.posts %} {% for post in postslist.slice(0, 4) %} {%
include "partials/blog-card.njk" %} {% endfor %}
{% set postslist = collections.posts %} {% for post in postslist.slice(0, 4) %}
<li class="card flow clickable-card overflow-hidden">
<h3>
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
</h3>
{% set definedDate = post.date %} {% include "partials/date.njk" %}
<p>{{ post.data.description }}</p>
</li>
{% endfor %}
</ul>
</article>

View file

@ -17,6 +17,11 @@
background: var(--color-secondary);
}
.card h2 {
font-size: var(--size-step-3);
}
.card h2 a,
.card h3 a {
text-decoration: none;
}