fix: image

This commit is contained in:
Cory Dransfeldt 2024-07-02 20:16:15 -07:00
parent 0ba8af81c1
commit d295e29834
No known key found for this signature in database
3 changed files with 10 additions and 10 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "19.9.10",
"version": "19.9.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "19.9.10",
"version": "19.9.11",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.4.0",

View file

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

View file

@ -16,21 +16,21 @@ schema: book
<div class="book-display">
<img
srcset="
https://cdn.coryd.dev{{ book.image }}?w=203&aspect_ratio=2:3 203w,
https://cdn.coryd.dev{{ book.image }}?w=406&aspect_ratio=2:3 406w,
https://cdn.coryd.dev{{ book.image }}?w=812&aspect_ratio=2:3 812w,
https://cdn.coryd.dev{{ book.image }}?w=1624&aspect_ratio=2:3 1624w
https://cdn.coryd.dev{{ book.image }}?class=verticalsm 200w,
https://cdn.coryd.dev{{ book.image }}?class=verticalmd 400w,
https://cdn.coryd.dev{{ book.image }}?class=verticalbase 800w,
https://cdn.coryd.dev{{ book.image }}?class=verticallg 1200w
"
sizes="(max-width: 450px) 203px,
(max-width: 850px) 406px,
(max-width: 1000px) 812px,
1624px"
src="https://cdn.coryd.dev{{ book.image }}?w=1624&aspect_ratio=2:3"
src="https://cdn.coryd.dev{{ book.image }}?class=verticallg"
alt="{{ alt }}"
loading="eager"
decoding="async"
width="203"
height="309"
width="200"
height="307"
/>
<div class="book-meta">
<p class="title"><strong>{{ book.title }}</strong></p>