fix: image paths
This commit is contained in:
parent
a776b43f23
commit
8fd2e34341
4 changed files with 10 additions and 9 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "20.0.0",
|
"version": "20.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "20.0.0",
|
"version": "20.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.4.0",
|
"@cdransf/api-text": "^1.4.0",
|
||||||
|
@ -2157,6 +2157,7 @@
|
||||||
"resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.15.0.tgz",
|
"resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.15.0.tgz",
|
||||||
"integrity": "sha512-u5lYWhW8ioT+O3FdCcp5U+hiPEGNO4xASCFlCHA+k5rMTJwDIa2c2KF111ZDKc2xGM7LXPvMoNRIrBfbLNpRBg==",
|
"integrity": "sha512-u5lYWhW8ioT+O3FdCcp5U+hiPEGNO4xASCFlCHA+k5rMTJwDIa2c2KF111ZDKc2xGM7LXPvMoNRIrBfbLNpRBg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^10.0.0"
|
"commander": "^10.0.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "20.0.0",
|
"version": "20.0.1",
|
||||||
"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": {
|
||||||
|
|
|
@ -47,8 +47,8 @@ const fetchAllShows = async () => {
|
||||||
const prepareShowData = (show) => {
|
const prepareShowData = (show) => {
|
||||||
return {
|
return {
|
||||||
...show,
|
...show,
|
||||||
image: show.art?.filename_disk ? show.art.filename_disk : '',
|
image: show.art?.filename_disk ? `/${show.art.filename_disk}` : '',
|
||||||
backdrop: show.backdrop?.filename_disk ? show.backdrop.filename_disk : ''
|
backdrop: show.backdrop?.filename_disk ? `/${show.backdrop.filename_disk}` : ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,10 @@ schema: show
|
||||||
<article class="watching-focus">
|
<article class="watching-focus">
|
||||||
<img
|
<img
|
||||||
srcset="
|
srcset="
|
||||||
https://cdn.coryd.dev/{{ show.backdrop }}?class=bannersm 256w,
|
https://cdn.coryd.dev{{ show.backdrop }}?class=bannersm 256w,
|
||||||
https://cdn.coryd.dev/{{ show.backdrop }}?class=bannermd 512w,
|
https://cdn.coryd.dev{{ show.backdrop }}?class=bannermd 512w,
|
||||||
https://cdn.coryd.dev/{{ show.backdrop }}?class=bannerbase 1024w,
|
https://cdn.coryd.dev{{ show.backdrop }}?class=bannerbase 1024w,
|
||||||
https://cdn.coryd.dev/{{ show.backdrop }}?class=bannerlg 2048w
|
https://cdn.coryd.dev{{ show.backdrop }}?class=bannerlg 2048w
|
||||||
"
|
"
|
||||||
sizes="(max-width: 450px) 256px,
|
sizes="(max-width: 450px) 256px,
|
||||||
(max-width: 850px) 512px,
|
(max-width: 850px) 512px,
|
||||||
|
|
Reference in a new issue