To include an image in your page:
- Create the image and save as a .png file with a width of 600px.
- Upload the image to the
_imagesfolder in the same directory of the page that will use the image, creating the
_imagefolder if required.
- Reference the image in the markdown.
Using the github web interface, navigate to the parent folder of your page and add the image to an
In the github editor you can not create an empty folder so if the folder does not exist it will be created during the upload step.
To reference the image we use markdown like:
![AnVIL Image](../_images/anvil-image.png "AnVIL Portal Image!")
../_images/ preceding the image name. This is required to tell the CMS where the image is.
You can also add a caption to the image using an HTML style custom tag like:
<figure-caption>Figure 1. The original AnVIL homepage image.</figure-caption>
This renders like:
You can check if the image link is correct by using the preview link in the markdown editor.
Images wider than the page channel will be sized to fit. Images narrower than the page channel will render their natural size.