Add images and files

Upload photos and PDFs with alt text and credits.

Images and files you add this way are resized, given thumbnails, and stored with their alt text and credits.

hm assets add ./hall.jpg --alt "The community hall at dusk" --caption "Our home since 1952"

Credit images you didn't make:

hm assets add https://example.org/photo.jpg --alt "Kererū on a branch" \
  --attribution "Jane Smith" --attribution-url https://example.org/jane

Change details later

hm assets list
hm assets update assets/images/FILE.jpg --alt "Better description"

Good to know

  • Always give alt text. It's what screen readers read out.
  • Assets belong to the Workspace, and go Live when you Publish.
  • The Workspace must be the one Preview is showing.
  • Uploads are limited to 25MB.