Skip to content

Commit

Permalink
♻️ refactor: replace details with expand in order to resolve the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaghadimi committed Mar 28, 2024
1 parent 23424f1 commit b1e4340
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hugo-blog/content/docs/shortcodes/expand.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ Expand shortcode can help to decrease clutter on screen by hiding part of text.
### Default

```tpl
{{</* expand */>}}
{{</* details */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /expand */>}}
{{</* /details */>}}
```

{{< expand >}}
{{< details >}}
## Markdown content
Lorem markdownum insigne...
{{< /expand >}}
{{< /details >}}

### With Custom Label

```tpl
{{</* expand "Custom Label" "..." */>}}
{{</* details "Custom Label" "..." */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /expand */>}}
{{</* /details */>}}
```

{{< expand "Custom Label" "..." >}}
{{< details "Custom Label" "..." >}}
## Markdown content
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
Miseratus fonte Ditis conubia.
{{< /expand >}}
{{< /details >}}

0 comments on commit b1e4340

Please sign in to comment.