From bc2c8792364e3030320ded2f47e76529492c670a Mon Sep 17 00:00:00 2001 From: mortendk Date: Sat, 23 Mar 2024 19:49:59 +0100 Subject: [PATCH] cleauip --- src/_system/11ty/shortcode/image.js | 1 + src/content/page/index/index.md | 2 +- src/content/post/2022/11/helloworld.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_system/11ty/shortcode/image.js b/src/_system/11ty/shortcode/image.js index 0526f286..b9ca5ee0 100644 --- a/src/_system/11ty/shortcode/image.js +++ b/src/_system/11ty/shortcode/image.js @@ -9,6 +9,7 @@ module.exports = async function (file, widths, format, alttext, sizes, loading, } else if (file.indexOf("http://") === 0 || file.indexOf("https://") === 0) { // ok is it from a http somewhere src = file; + // console.log(`📷 url image: ${src}`); } else if (fs.existsSync( './src' + file)) { // alright lets test and se if its in the global content/upload prefix with src src = './src' + file diff --git a/src/content/page/index/index.md b/src/content/page/index/index.md index 2f7ccc59..b92a0f72 100644 --- a/src/content/page/index/index.md +++ b/src/content/page/index/index.md @@ -8,7 +8,7 @@ layout: page/frontpage.liquid date: 2023-06-20 22:01:46 title: Saga 11 url: / -image: https://images.unsplash.com/photo-1595740041673-6a525c7be994?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8ZWxldmVufGVufDB8fDB8fHww +image: components: - type: collection order: data.order diff --git a/src/content/post/2022/11/helloworld.md b/src/content/post/2022/11/helloworld.md index 3bbb5277..f90f4fe8 100644 --- a/src/content/post/2022/11/helloworld.md +++ b/src/content/post/2022/11/helloworld.md @@ -1,6 +1,6 @@ --- title: Hello World -image: https://images.unsplash.com/photo-1488145842571-f4b346304162?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D +image: card: title: Hello World im a card text: This is text in a card and used for sharing and teaser on the site