Move up code shortcode section
This commit is contained in:
34
README.md
34
README.md
@@ -506,6 +506,23 @@ title: Search
|
|||||||
|
|
||||||
## Shortcodes
|
## Shortcodes
|
||||||
|
|
||||||
|
### Code
|
||||||
|
|
||||||
|
The `paige/code` shortcode provides a figure with centered, highlighted code and an optional, centered caption.
|
||||||
|
|
||||||
|
These are the the named parameters with positions:
|
||||||
|
|
||||||
|
```
|
||||||
|
{{< paige/code lang="go" caption="My caption" options="linenos=true" >}}
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<body>
|
||||||
|
<p>Test</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
{{< /paige/code >}}
|
||||||
|
```
|
||||||
|
|
||||||
### Image
|
### Image
|
||||||
|
|
||||||
The `paige/image` shortcode provides a figure with a centered image and an optional, centered caption.
|
The `paige/image` shortcode provides a figure with a centered image and an optional, centered caption.
|
||||||
@@ -530,23 +547,6 @@ These are the named parameters without positions:
|
|||||||
{{< paige/image height=500 width=500 >}}
|
{{< paige/image height=500 width=500 >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Code
|
|
||||||
|
|
||||||
The `paige/code` shortcode provides a figure with centered, highlighted code and an optional, centered caption.
|
|
||||||
|
|
||||||
These are the the named parameters with positions:
|
|
||||||
|
|
||||||
```
|
|
||||||
{{< paige/code lang="go" caption="My caption" options="linenos=true" >}}
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{{< /paige/code >}}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Gallery
|
### Gallery
|
||||||
|
|
||||||
The `paige/gallery` shortcode provides a figure with a set of images and an optional, centered caption.
|
The `paige/gallery` shortcode provides a figure with a set of images and an optional, centered caption.
|
||||||
|
Reference in New Issue
Block a user