Skip to content

Commit

Permalink
cleauip
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendk committed Mar 23, 2024
1 parent d969051 commit bc2c879
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/_system/11ty/shortcode/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/content/page/index/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/content/post/2022/11/helloworld.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bc2c879

Please sign in to comment.