diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a881d64..30d8a63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.4 + rev: v0.16.5 hooks: - id: ruff name: ruff check diff --git a/opengraph/README.md b/opengraph/README.md index 7d45874..9262e40 100644 --- a/opengraph/README.md +++ b/opengraph/README.md @@ -53,11 +53,13 @@ To adapt this example for your own website: 2. **Customize metadata patterns** in the `get_opengraph_data()` method: ```python if path.startswith("/your-section/"): - og_data.update({ - "title": "Your Custom Title", - "description": "Your custom description", - "image": "https://your-image-url.com/image.jpg" - }) + og_data.update( + { + "title": "Your Custom Title", + "description": "Your custom description", + "image": "https://your-image-url.com/image.jpg", + } + ) ``` 3. **Add more URL patterns** to match your site structure