Skip to content

Commit

Permalink
refactor to use width kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Apr 27, 2024
1 parent dd1cace commit cd09ddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blurry/plugins/jinja_plugins/blurry_image_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class BlurryImage(StandaloneTag):
tags = {"blurry_image"}

def render(self, *args, **kwargs):
image_url, width = args
(image_url,) = args
width = kwargs.get("width")
image_content_path: str = "." + urlparse(image_url).path
image_path = get_build_directory() / image_content_path

Expand Down

0 comments on commit cd09ddc

Please sign in to comment.