Skip to content

Commit

Permalink
chore: describe image options
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jan 23, 2024
1 parent 8b7b779 commit 636019b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/posts/image/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ subtitle = "Shortcodes for images"
csp_img = ["raw.githubusercontent.com/charlesrocket/beastie/"]
+++

All variables (except `img`) are optional.

input:

```rs
{{/* image(img="fireball.gif", link="https://halve-z.netlify.app/", alt="Fireball", caption="8bit fireball") */}}
```

- `img`: the source string (mandatory)
- `caption`: set image caption (optional)
- `alt`: set alternative text (optional)

output:

```html
Expand Down

0 comments on commit 636019b

Please sign in to comment.