Adding images

I don’t use many images, so I never built a more automated system to handle them. I also don’t use a fancy CDN because I like the portability of everything being a single git repo that’s easy to migrate wherever.

I save everything in /static/post-content/{{date-of-post}/{{image-name}}

If you don’t want an image caption, the standard markdown format works: ![No dogs allowed](/static/post-content/2022-09-17/no-dogs.jpeg)

No dogs allowed

If you want to add an caption, then you have to use HTML:

 <figure>
 <img src="/static/post-content/2022-09-17/no-dogs.jpeg"
 alt="No dogs allowed">
 <figcaption>This is a safe space for cat people</figcaption>
 </figure>
No dogs allowed
This is a safe space for cat people

And that’s it for images!