{{ .Title }}
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
{{* /highlight */>}}
```
The rendered output looks like this:
{{< highlight html >}}
{{ .Title }}
{{ range .Pages }}
{{ .Render "summary"}}
{{ end }}
{{< /highlight >}}
### `instagram`
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes/#instagram)
Example `instagram` Input:
```markdown
{{* instagram BWNjjyYFxVx hidecaption */>}}
```
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
### `param`
[Documentation of `param`](https://gohugo.io/content-management/shortcodes/#param)
Example `param` Input:
```markdown
{{* param description */>}}
```
The rendered output looks like this:
{{< param description >}}
### `ref` and `relref` {#ref-and-relref}
[Documentation of `ref` and `relref`](https://gohugo.io/content-management/shortcodes/#ref-and-relref)
### `tweet`
[Documentation of `tweet`](https://gohugo.io/content-management/shortcodes/#tweet)
Example `tweet` Input:
```markdown
{{* tweet 877500564405444608 */>}}
```
The rendered output looks like this:
{{< tweet 877500564405444608 >}}
### `vimeo`
[Documentation of `vimeo`](https://gohugo.io/content-management/shortcodes/#vimeo)
Example `vimeo` Input:
```markdown
{{* vimeo 146022717 */>}}
```
The rendered output looks like this:
{{< vimeo 146022717 >}}
### `youtube`
[Documentation of `youtube`](https://gohugo.io/content-management/shortcodes/#youtube)
Example `youtube` Input:
```markdown
{{* youtube w7Ft2ymGmfc */>}}
```
The rendered output looks like this:
{{< youtube w7Ft2ymGmfc >}}
## LoveIt Shortcodes
**LoveIt** provides multiple shortcodes on top of existing ones.
### `style`
`style` is a shortcode to insert custom style in your post.
The `style` shortcode can use two parameters. The first is the custom style content and the second is the HTML tag around the content you want to change style, and whose default value is `p`.
Example `style` Input:
```markdown
{{* style "text-align: right" */>}}
This is a right-aligned paragraph.
{{* /style */>}}
```
The rendered output looks like this:
{{< style "text-align: right" >}}
This is a right-aligned paragraph.
{{< /style >}}
### `link`
{{< admonition >}}
{{< version 1.2.0 >}}
{{< /admonition >}}
`link` shortcode is an alternative to [Markdown link syntax](../basic-markdown-syntax/#links). `link` shortcode can provide some other features and can be used in code blocks.
The `link` shortcode can use the following named parameters:
* **href**
Destination of the link.
* **content**
Content of the link (HTML format is allowed).
* **title**
`title` attribute of the HTML `a` tag, which will be shown when hovering on the link.
* **rel**
Additional `rel` attributes of the HTML `a` tag.
* **class**
`class` attribute of the HTML `a` tag.
#### Basic `link`
Example basic `link` Input:
```markdown
{{* link "https://assemble.io" */>}}
Or
{{* link href="https://assemble.io" */>}}
{{* link "mailto:contact@revolunet.com" */>}}
Or
{{* link href="mailto:contact@revolunet.com" */>}}
{{* link "https://assemble.io" Assemble */>}}
Or
{{* link href="https://assemble.io" content=Assemble */>}}
```
The rendered output looks like this:
* {{< link "https://assemble.io" >}}
* {{< link "mailto:contact@revolunet.com" >}}
* {{< link "https://assemble.io" Assemble >}}
#### Add a Title
```markdown
{{* link "https://github.com/upstage/" Upstage "Visit Upstage!" */>}}
Or
{{* link href="https://github.com/upstage/" content=Upstage title="Visit Upstage!" */>}}
```
The rendered output looks like this (hover over the link, there should be a tooltip):
{{< link "https://github.com/upstage/" Upstage "Visit Upstage!" >}}
### `image`
`image` shortcode is an alternative to [`figure` shortcode](#figure). `image` shortcode can take full advantage of the dependent libraries of [lazysizes](https://github.com/aFarkas/lazysizes) and [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js).
The `image` shortcode can use the following named parameters:
* **src**
URL of the image to be displayed.
* **description**
Image description.
* **title**
Image title.
* **class**
`class` attribute of the HTML `figure` tag.
* **src_s**
URL of the image thumbnail, used for lightgallery.
* **src_l**
URL of the HD image, used for lightgallery.
Example `image` Input:
```markdown
{{* image src="/images/theme-documentation-shortcodes/lighthouse.jpg" title="Lighthouse (`image`)" src-s="/images/theme-documentation-shortcodes/lighthouse-small.jpg" src-l="/images/theme-documentation-shortcodes/lighthouse-large.jpg" */>}}
```
The rendered output looks like this:
{{< image src="/images/theme-documentation-shortcodes/lighthouse.jpg" title="Lighthouse (`image`)" src-s="/images/theme-documentation-shortcodes/lighthouse-small.jpg" src-l="/images/theme-documentation-shortcodes/lighthouse-large.jpg" >}}
### `admonition`
The `admonition` shortcode supports **12** types of banners to help you put notice in your page and `Markdown` format is supported.
{{< admonition >}}
A **note** banner
{{< /admonition >}}
{{< admonition abstract >}}
An **abstract** banner
{{< /admonition >}}
{{< admonition info >}}
A **info** banner
{{< /admonition >}}
{{< admonition tip >}}
A **tip** banner
{{< /admonition >}}
{{< admonition success >}}
A **success** banner
{{< /admonition >}}
{{< admonition question >}}
A **question** banner
{{< /admonition >}}
{{< admonition warning >}}
A **warning** banner
{{< /admonition >}}
{{< admonition failure >}}
A **failure** banner
{{< /admonition >}}
{{< admonition danger >}}
A **danger** banner
{{< /admonition >}}
{{< admonition bug >}}
A **bug** banner
{{< /admonition >}}
{{< admonition example >}}
An **example** banner
{{< /admonition >}}
{{< admonition quote >}}
A **quote** banner
{{< /admonition >}}
The `admonition` shortcode can use the following named parameters:
* **type**
Type of the `admonition` banner, default is **note**
* **title**
Title of the `admonition` banner, default is the type name of the banner
* **details**
if `true`, the content will be expandable/collapsible.
You can also use the positional parameters in the order of **type**, **title** and **details**.
Example `admonition` Input:
```markdown
{{* admonition type=tip title="This is a tip" details=true */>}}
A **tip** banner
{{* /admonition */>}}
Or
{{* admonition tip "This is a tip" true */>}}
A **tip** banner
{{* /admonition */>}}
```
The rendered output looks like this:
{{< admonition tip "This is a tip" true >}}
A **tip** banner
{{< /admonition >}}
### `mermaid`
[mermaid](https://mermaidjs.github.io/) is a library helping you to generate diagram and flowcharts from text, in a similar manner as Markdown.
Just insert your mermaid code in the `mermaid` shortcode and that’s it.
#### Flowchart {#flowchart}
Example **flowchart** `mermaid` Input:
```markdown
{{* mermaid */>}}
graph LR;
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
{{* /mermaid */>}}
```
The rendered output looks like this:
{{< mermaid >}}
graph LR;
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
{{< /mermaid >}}
#### Sequence Diagram {#sequence-diagram}
Example **sequence diagram** `mermaid` Input:
```markdown
{{* mermaid */>}}
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts