Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html image tag with the correct image path #54

Open
ant0nioli opened this issue Feb 10, 2023 · 2 comments
Open

html image tag with the correct image path #54

ant0nioli opened this issue Feb 10, 2023 · 2 comments

Comments

@ant0nioli
Copy link

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
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants