aaranxu / adidoks

AdiDoks is a mordern documentation theme, which is a port of the Hugo theme Doks for Zola.
https://adidoks.org
MIT License
220 stars 80 forks source link

html image tag with the correct image path #54

Open ant0nioli opened 1 year ago

ant0nioli commented 1 year ago

Hi!

I'm looking for the best way to add an image html tag with the correct path to a .MD files.

I have tried with this and many other path options:

![John Redcorn](../john-redcorn.png "John Redcorn")

Putting the image directly into the content folder or creating an img forder outside.

Could you please share what's the best way to do this?

Thank you for this awesome theme!

oseijoel6111 commented 1 year ago

What you have done is also one of the best way or you can follow this format Alt text

[Alt text] : is the text you wish to display, if the image is not found (path/image) : refers to the the path where the image can be found, you can decide to place the image in a folder where the .md files can be found too.

ant0nioli commented 1 year ago

Thank you for your answers @oseijoel6111 !

About the path: As I can see, in Zola some directories are created by .md files, so I can not put the image in the correct directory, because the directory will be created only by the serve or build process. Is there a way to link the images from (for example) an img folder inside the content folder? Or maybe an img folder inside the public or static folders?