In this section, we will learn about adding assets like images into your fastn
misty-gray
website.
misty-gray
project add a folder inside it. You can also keep your image assets in the root directory. We recommend adding all your images into a separate folder to maintain your images in one place.<images>
into your fastn project. And you added an image sample.jpg
inside it.-- ds.image: src: $assets.files.images.sample.jpg
In the above code snippet $assets.files
refers to your fastn
project root folder.
.images
refers to your <images>
folder you created inside your fastn
project.
.sample.jpg
is the image inside <images>
folder.
fastn
project as you wish to and refers to them as we see above.