chore: book image link

This commit is contained in:
Cory Dransfeldt 2024-04-22 13:02:39 -07:00
parent 570ffed8ae
commit 6a946a36ee
No known key found for this signature in database
3 changed files with 13 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "12.7.2",
"version": "12.7.3",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -11,6 +11,15 @@
& img {
border: 1px solid var(--accent-color);
border-radius: var(--rounded);
transition-property: border-color;
transition-timing-function: var(--transition-ease-in-out);
transition-duration: 300ms;
}
& a:hover img,
& a:focus img,
& a:active img {
border-color: var(--accent-color-hover)
}
& img,

View file

@ -10,7 +10,9 @@ permalink: "/books/index.html"
{% for book in bookData %}
{% capture alt %}{{ book.title }} by {{ book.authors }}{% endcapture %}
<article class="book-entry">
{% image book.image, alt %}
<a href="{{ book.url }}">
{% image book.image, alt %}
</a>
<div class="book-meta">
<a href="{{ book.url }}">
<p class="title"><strong>{{ book.title }}</strong></p>