Skip to content

Commit

Permalink
chore: update image shortcodes post
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jan 22, 2024
1 parent e1d8293 commit d4b6637
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions content/posts/images/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ tags = ["content", "shortcodes"]
subtitle = "Shortcodes for images"
+++

## Internal image

All variables (except `img`) are optional.

input:
Expand All @@ -28,6 +26,20 @@ output:

input:

```rs
{{/* image(img="https://halve-z.netlify.app/fireball.gif") */}}
```

output:

```html
{{ image(img="https://halve-z.netlify.app/fireball.gif") }}
```

{{ image(img="https://halve-z.netlify.app/fireball.gif") }}

input:

```rs
{{/* image(img="fireball.gif") */}}
```
Expand Down

0 comments on commit d4b6637

Please sign in to comment.