[SOLVED] Inserting images with figure - caption and title

As explained in the docs, using figure for inserting images in a post, creates something like this:

<figure>
<img src="/media/spf13.jpg" />
<figcaption>
<h4>Steve Francia</h4>
</figcaption>
`` ````

  1. Is it a good way to use <h4> tags for image captions regarding SEO? Is it possible to just use figcaption only?
  2. Is there a way to define the image title attribute with figure?
  1. You can create your own figure shortcode and do whatever you please. Note that if you name the shortcode the same as the internal Hugo shortcode, it will replace the default behavior.
2 Likes

Perfect, thank you. Didn’t know that!