Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.44 KB

File metadata and controls

38 lines (27 loc) · 1.44 KB
description
An image with caption and link

Figure

👁️ PREVIEW

{%
  include figure.html
  image="images/group-photo.jpg"
  caption="The team at our annual Christmas party, 2025"
  link="team"
  width="400px"
%}
ParameterDescription
imageURL to image for the figure.
captionCaption content. Can contain Markdown.
linkURL to navigate to when clicking on the image.
width / heightDimensions of the image in px or %. You should only specify either width OR height, to maintain the original aspect ratio of the image. Image will shrink to fit smaller screen sizes.

{% hint style="info" %} images/fallback.svg is an image that will be shown in place of images (in any component) that fail to load. This is useful because you may often be linking to external image URLs that can become broken without notice. {% endhint %}

Example of using with the section component to make a full width banner:

{% raw %}
{% include section.html size="full" %}

{% include figure.html image="images/banner.jpg" width="100%" %}

{% include section.html %}
{% endraw %}

Continued content