nunocoracao / blowfish

Personal Website & Blog Theme for Hugo
https://blowfish.page
MIT License
1.53k stars 421 forks source link

🧰 Change external image support to fetch images in real time and not build time #1713

Open axiaoxin opened 2 months ago

axiaoxin commented 2 months ago

Hello, I would like to set the logo image and featured image using external links. I don't want to host the images locally. However, after I configure the image URLs in the configuration file, they are downloaded locally, and the image sources are pointing to the local files, preventing them from being loaded via external links. I have tried disabling the image optimization option, but it didn't work.

Could you please let me know if displaying images via external links is supported, and how I should configure it?

nunocoracao commented 2 months ago

That's the current behavior for remote images. You can reference external images but they get pulled during building of the website. Changing this would be a big effort at this stage as it would require refactoring some code. I do think the request makes sense though.

Would you mind changing the text to reflect this request so that we can reuse this issue? I will change the title

axiaoxin commented 2 months ago

Great, I'm looking forward to this feature. It will be very beneficial for saving bandwidth on my static website. Thank you very much!