You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,9 @@ Make sure you place the fields at the very start of the document such that Sphin
79
79
These are some overrides that can be used on individual pages, you can actually override any tag and field lists will always take priority.
80
80
81
81
*`:ogp_description_length:`
82
-
* Configure the amount of characters to grab for the description of the page. If the value isn't a number it will fall back to `ogp_description_length`. Note the slightly different syntax because this isn't directly an Open Graph tag.
82
+
* Configure the amount of characters to grab for the description of the page. If the value isn't a number it will fall back to `ogp_description_length`.[^1]
83
+
*`:ogp_disable:`
84
+
* Disables generation of Open Graph tags on the page.[^1]
83
85
*`:og:description:`
84
86
* Lets you override the description of the page.
85
87
*`:description:` or `.. meta::\n :description:`
@@ -89,7 +91,7 @@ These are some overrides that can be used on individual pages, you can actually
89
91
*`:og:type:`
90
92
* Override the type of the page, for the list of available types take a look at https://ogp.me/#types.
91
93
*`:og:image:`
92
-
* Set the image for the page.[^1]
94
+
* Set the image for the page.[^2]
93
95
*`:og:image:alt:`
94
96
* Sets the alt text. Will be ignored if there is no image set.
95
97
@@ -105,7 +107,7 @@ Page contents
105
107
=============
106
108
```
107
109
108
-
### Arbitrary Tags[^1]
110
+
### Arbitrary Tags[^2]
109
111
Additionally, you can use field lists to add any arbitrary Open Graph tag not supported by the extension. The syntax for arbitrary tags is the same with `:og:tag: content`. For example:
110
112
111
113
```rst
@@ -115,4 +117,5 @@ Page contents
115
117
=============
116
118
```
117
119
118
-
[^1]: Note: Relative file paths for images, videos and audio are currently **not** supported when using field lists. Please use an absolute path instead.
120
+
[^1]: Note the slightly different syntax because this isn't directly an Open Graph tag.
121
+
[^2]: Note: Relative file paths for images, videos and audio are currently **not** supported when using field lists. Please use an absolute path instead.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse at lorem ornare, fringilla massa nec, venenatis mi. Donec erat sapien, tincidunt nec rhoncus nec, scelerisque id diam. Orci varius natoque penatibus et magnis dis parturient mauris.
0 commit comments