manuelernestog / astrofy

Astrofy is a free and open-source template for your Personal Portfolio Website built with Astro and TailwindCSS. Create in minutes a website with Blog, CV, Project Section, Store and RSS Feed.

Home Page:https://astrofy-template.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

moving images under src

brahimABD98 opened this issue · comments

according to the image docs we should consider moving images under src/ since currently all images are in the public folder
we should consider applying the AVIF format to all images

Nice suggestion @brahimABD98!

I think we can leave the svg in public and move the other ones.
About the AVIF format. If we are going to use this should be using the picture tag adding support for old browsers. webp has less compression but better support at least for now.

I'm going to decline this as we have blog posts that can get external resources is easy to give this possibility to the user.

I'm going to decline this as we have blog posts that can get external resources is easy to give this possibility to the user.

Yes, I agree @manuelernestog recently I had some trouble importing images from content folder when I tried to do this inside an md file.

<img src="./images/image.png" width="300" alt="img" />

but importing from the public folder works just fine

<img src="/image.png" width="300" alt="image" />

Thanks for confirming @brahimABD98

Regards 🙌