Adding Images to Hugo Sites
Goal
Add images to your Hugo site pages using the appropriate method for your use case.
Methods
Page Bundles
Place images alongside your markdown file:
content/posts/my-post/
├── index.md
├── my-image.jpg
Reference in index.md:

or with full path:

Static Directory
For globally shared images:
static/images/my-image.jpg
Reference in markdown:

Hugo Figure Shortcode
For captions and additional styling:

Image Title
With static directory:

Image Title
External URLs

HTML
For custom dimensions:
<img src="/images/my-image.jpg" alt="Alt text" width="600">
Which to Use
- Blog posts: Page bundles
- Global images: Static folder
- Captions/styling: Hugo shortcodes
- External images: Absolute URLs