taking lighthouse accessibility suggestions
This commit is contained in:
parent
3aa4244220
commit
c15a77468a
3 changed files with 12 additions and 24 deletions
|
@ -8,17 +8,19 @@
|
|||
{% if item.data.cover %}
|
||||
{% image item.data.cover, "", "(min-width: 60rem) calc(0.5 * var(--content-width)), var(--content-width)", "lazy", "collection-cover", item.page.inputPath %}
|
||||
{% endif %}
|
||||
<a href="{{item.url}}">{{item.data.title}}</a>
|
||||
{%- if item.data.date -%}
|
||||
<aside>{{item.data.date | formatDate("MMMM DD, YYYY") }}</aside>
|
||||
{%- endif -%}
|
||||
<aside>{{ tagList(item.data.tags.slice(1)) }}</aside>
|
||||
<p>{{item.data.description | safe}}</p>
|
||||
<a class="collection-itemTitle" href="{{item.url}}">{{item.data.title}}</a>
|
||||
<div class="collection-itemData">
|
||||
{%- if item.data.date -%}
|
||||
<span>{{item.data.date | formatDate("MMMM DD, YYYY") }}</span>
|
||||
{%- endif -%}
|
||||
<span>{{ tagList(item.data.tags.slice(1)) }}</span>
|
||||
</div>
|
||||
<p class="collection-itemDescription">{{item.data.description | safe}}</p>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- if (limit !== 0 and loop.index == limit + 1) -%}
|
||||
<li>
|
||||
<a href="/{{tagName}}/">More {{tagName}}…</a>
|
||||
<a class="collection-itemTitle" href="/{{tagName}}/">More {{tagName}}…</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
|
|
@ -206,7 +206,6 @@ li::marker {
|
|||
aside {
|
||||
display: inline-block;
|
||||
margin-left: 1ch;
|
||||
font-size: var(--s-1);
|
||||
}
|
||||
|
||||
span.aside {
|
||||
|
@ -284,7 +283,7 @@ ul.collection {
|
|||
box-shadow: inset 0 0 2rem -1rem var(--c-accent);
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.25rem;
|
||||
> a:first-of-type {
|
||||
a.collection-itemTitle {
|
||||
position: static;
|
||||
&::before {
|
||||
content: "";
|
||||
|
@ -293,9 +292,6 @@ ul.collection {
|
|||
}
|
||||
}
|
||||
}
|
||||
> aside {
|
||||
display: inline;
|
||||
}
|
||||
> p {
|
||||
&::before {
|
||||
content: none;
|
||||
|
@ -308,11 +304,6 @@ ul.collection {
|
|||
+ li {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
@media (max-width: 40rem) {
|
||||
.tags {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,11 +5,6 @@ rssUrl: "feed.xml"
|
|||
{%- from "components/collectionList.njk" import collectionList with context -%}
|
||||
<main data-pagefind-body>
|
||||
{{ content | safe }}
|
||||
{%- for name, collection in collections -%}
|
||||
{%- if name in ["posts"] -%}
|
||||
<h2>{{name | capitalize }}</h2>
|
||||
{% include "-taglist.njk" %}
|
||||
{{ collectionList(name, limit=5) }}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
<h2>Recent posts</h2>
|
||||
{{ collectionList("posts", limit=5) }}
|
||||
</main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue