Adding Assets

In this section, we will learn about adding assets like images into your fastn misty-gray website.

To add assets to the 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.
-- ds.image:
src: $assets.files.images.sample.jpg
Lang:
ftd
  • 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.

You can add as many image assets into your fastn project as you wish to and refers to them as we see above.