blurry-cli 0.8.2__tar.gz → 0.8.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/PKG-INFO +1 -1
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/markdown/__init__.py +0 -2
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/jinja_plugins/blurry_image_extension.py +0 -6
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/pyproject.toml +1 -1
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/LICENSE +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/README.md +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/__main__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/async_typer.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/cli.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/constants.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/images.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/markdown/front_matter.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/markdown/renderer_functions/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/markdown/renderer_functions/render_video.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/open_graph.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/html_plugins/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/html_plugins/minify_html_plugin.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/jinja_plugins/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/markdown_plugins/__init__.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/markdown_plugins/container_plugin.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/markdown_plugins/punctuation_plugin.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/markdown_plugins/python_code_plugin.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/py.typed +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/schema_validation.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/settings.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/sitemap.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/types.py +0 -0
- {blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/utils.py +0 -0
|
@@ -183,14 +183,12 @@ def convert_markdown_file_to_html(filepath: Path) -> tuple[str, dict[str, Any]]:
|
|
|
183
183
|
|
|
184
184
|
# Add inferred/computed/relative values
|
|
185
185
|
# https://schema.org/image
|
|
186
|
-
# https://schema.org/thumbnailUrl
|
|
187
186
|
front_matter.update({"url": content_path_to_url(filepath.relative_to(CONTENT_DIR))})
|
|
188
187
|
if image := front_matter.get("image"):
|
|
189
188
|
image_copy = deepcopy(image)
|
|
190
189
|
relative_image_path = get_relative_image_path_from_image_property(image_copy)
|
|
191
190
|
image_path = resolve_relative_path_in_markdown(relative_image_path, filepath)
|
|
192
191
|
front_matter["image"] = update_image_with_url(image_copy, image_path)
|
|
193
|
-
front_matter["thumbnailUrl"] = image_path_to_thumbnailUrl(image_path)
|
|
194
192
|
return html, front_matter
|
|
195
193
|
|
|
196
194
|
|
{blurry_cli-0.8.2 → blurry_cli-0.8.3}/blurry/plugins/jinja_plugins/blurry_image_extension.py
RENAMED
|
@@ -60,12 +60,6 @@ class BlurryImage(StandaloneTag):
|
|
|
60
60
|
]:
|
|
61
61
|
image_path = Path(str(image_path).replace(image_path.suffix, ".avif"))
|
|
62
62
|
|
|
63
|
-
if not image_path.exists():
|
|
64
|
-
warning_console.print(
|
|
65
|
-
f"blurry_image: Could not find {image_path}. Skipping."
|
|
66
|
-
)
|
|
67
|
-
return ""
|
|
68
|
-
|
|
69
63
|
attributes["src"] = build_path_to_url(image_path)
|
|
70
64
|
|
|
71
65
|
if "alt" not in attributes:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|