Skip to content

Commit

Permalink
add type attrigute to source tag for avif images
Browse files Browse the repository at this point in the history
  • Loading branch information
KajKandler committed Mar 15, 2024
1 parent de4b44f commit d514026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blurry/markdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def image(self, text, url, title=None) -> str:
avif_srcset = generate_srcset_string(
src.replace(extension, "avif"), image_widths
)
source_tag = '<source srcset="{}" sizes="{}" />'.format(
source_tag = '<source srcset="{}" sizes="{}" type="image/avif" />'.format(
avif_srcset, attributes["sizes"]
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "blurry-cli"
version = "0.6.2"
version = "0.6.2.2"
description = "A Mistune-based static site generator for Python"
authors = ["John Franey <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d514026

Please sign in to comment.