Skip to content

Commit

Permalink
docs: correct image paths (#1535)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
gy-mate and antfu committed Apr 15, 2024
1 parent fd20677 commit 3e8ac77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/builtin/layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Shows an image on the left side of the screen, the content will be placed on the
layout: image-left

# the image source
image: ./path/to/the/image
image: /path/to/the/image

# a custom class name to the content
class: my-cool-content-on-the-right
Expand All @@ -57,7 +57,7 @@ Shows an image on the right side of the screen, the content will be placed on th
layout: image-right

# the image source
image: ./path/to/the/image
image: /path/to/the/image

# a custom class name to the content
class: my-cool-content-on-the-left
Expand All @@ -75,7 +75,7 @@ Shows an image as the main content of the page.
layout: image

# the image source
image: ./path/to/the/image
image: /path/to/the/image
---
```

Expand All @@ -84,15 +84,15 @@ You can change the default background size (`cover`) by adding the `backgroundSi
```yaml
---
layout: image
image: ./path/to/the/image
image: /path/to/the/image
backgroundSize: contain
---
```

```yaml
---
layout: image-left
image: ./path/to/the/image
image: /path/to/the/image
backgroundSize: 20em 70%
---
```
Expand Down

0 comments on commit 3e8ac77

Please sign in to comment.