Skip to content

Commit 560cfb8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 88067df commit 560cfb8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎opengraph/README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ To adapt this example for your own website:
5353
2. **Customize metadata patterns** in the `get_opengraph_data()` method:
5454
```python
5555
if path.startswith("/your-section/"):
56-
og_data.update({
57-
"title": "Your Custom Title",
58-
"description": "Your custom description",
59-
"image": "https://your-image-url.com/image.jpg"
60-
})
56+
og_data.update(
57+
{
58+
"title": "Your Custom Title",
59+
"description": "Your custom description",
60+
"image": "https://your-image-url.com/image.jpg",
61+
}
62+
)
6163
```
6264

6365
3. **Add more URL patterns** to match your site structure

0 commit comments

Comments
 (0)