justint / papaya

A clean Zola theme for blogging and projects.
https://justintennant.me/papaya/
MIT License
45 stars 24 forks source link

Don't add an empty class tag if there's no class specified on the image #16

Closed moppius closed 1 year ago

moppius commented 1 year ago

I noticed that if class is not specified in the image when generating a page using img(), HTML code gets generated like so with an empty class tag, which seems unnecessary:

<img src="http://path/to/image.jpg" class>

With this change it will instead generate:

<img src="http://path/to/image.jpg">
justint commented 1 year ago

Good catch, thanks Paul!