zblog-image-with-caption

star 4

Insert or explain an image with caption in zblog posts. Use when the user asks to add an image caption, image footer, figure, or asks for the zblog image caption syntax.

daya0576 By daya0576 schedule Updated 5/31/2026

name: zblog-image-with-caption description: Insert or explain an image with caption in zblog posts. Use when the user asks to add an image caption, image footer, figure, or asks for the zblog image caption syntax.

zblog Image With Caption

Use Hugo's built-in figure shortcode for images that need a visible caption/footer.

Syntax

{{< figure src="/images/blog/<path>/<file>" alt="<accessible description>" caption="<caption shown under the image>" >}}

Rules

  • Store post images under static/images/, usually static/images/blog/....
  • Reference static assets with a leading slash, e.g. /images/blog/global/example.jpg.
  • Always provide meaningful alt text unless the image is purely decorative.
  • Use caption for the text shown below the image.
  • Do not add inline HTML or inline styles for normal captioned images.
  • For an uncaptained image, Markdown is acceptable:
![alt text](/images/blog/<path>/<file>)

Example

{{< figure src="/images/blog/global/BBE85036-8B31-4AAE-A309-0EC0B1836DD3_1_201_a.jpeg" alt="Pai holding a toy and interacting with a classmate" caption="Pai is on the right, holding a toy and interacting with a classmate." >}}
Install via CLI
npx skills add https://github.com/daya0576/daya0576.github.io --skill zblog-image-with-caption
Repository Details
star Stars 4
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator