Skip to content

Commit d0707a9

Browse files
ItayZivTheTripleV
andauthored
Apply suggestions from code review
Co-authored-by: Vasista Vovveti <[email protected]>
1 parent 4ad988f commit d0707a9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,15 @@ Remember that the fields **must** be placed at the very start of the file. You c
8989
:og:description: New description
9090
:og:image: http://example.org/image.png
9191
:og:image:alt: Example Image
92-
```
92+
93+
Page contents
94+
=============
9395
9496
### Arbitrary Tags
9597
Additionally, you can use field lists to add any arbitrary OpenGraph tag not supported by the extension. The syntax for arbitrary tags is the same with `:og:tag: content`. For Example:
9698
9799
```rst
98100
:og:video: http://example.org/video.mp4
99-
```
101+
102+
Page contents
103+
=============

sphinxext/opengraph/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ def get_tags(
144144

145145
return (
146146
"\n"
147-
+ "\n".join([make_tag(p, c) for p, c in tags.items()])
148-
+ "\n".join(config["ogp_custom_meta_tags"])
147+
+ "\n".join([make_tag(p, c) for p, c in tags.items()] + config["ogp_custom_meta_tags"])
149148
)
150149

151150

0 commit comments

Comments
 (0)