Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions opengraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading