fix: image
This commit is contained in:
parent
0ba8af81c1
commit
d295e29834
3 changed files with 10 additions and 10 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "19.9.10",
|
"version": "19.9.11",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "19.9.10",
|
"version": "19.9.11",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.4.0",
|
"@cdransf/api-text": "^1.4.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "19.9.10",
|
"version": "19.9.11",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -16,21 +16,21 @@ schema: book
|
||||||
<div class="book-display">
|
<div class="book-display">
|
||||||
<img
|
<img
|
||||||
srcset="
|
srcset="
|
||||||
https://cdn.coryd.dev{{ book.image }}?w=203&aspect_ratio=2:3 203w,
|
https://cdn.coryd.dev{{ book.image }}?class=verticalsm 200w,
|
||||||
https://cdn.coryd.dev{{ book.image }}?w=406&aspect_ratio=2:3 406w,
|
https://cdn.coryd.dev{{ book.image }}?class=verticalmd 400w,
|
||||||
https://cdn.coryd.dev{{ book.image }}?w=812&aspect_ratio=2:3 812w,
|
https://cdn.coryd.dev{{ book.image }}?class=verticalbase 800w,
|
||||||
https://cdn.coryd.dev{{ book.image }}?w=1624&aspect_ratio=2:3 1624w
|
https://cdn.coryd.dev{{ book.image }}?class=verticallg 1200w
|
||||||
"
|
"
|
||||||
sizes="(max-width: 450px) 203px,
|
sizes="(max-width: 450px) 203px,
|
||||||
(max-width: 850px) 406px,
|
(max-width: 850px) 406px,
|
||||||
(max-width: 1000px) 812px,
|
(max-width: 1000px) 812px,
|
||||||
1624px"
|
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 }}"
|
alt="{{ alt }}"
|
||||||
loading="eager"
|
loading="eager"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
width="203"
|
width="200"
|
||||||
height="309"
|
height="307"
|
||||||
/>
|
/>
|
||||||
<div class="book-meta">
|
<div class="book-meta">
|
||||||
<p class="title"><strong>{{ book.title }}</strong></p>
|
<p class="title"><strong>{{ book.title }}</strong></p>
|
||||||
|
|
Reference in a new issue