Skip to content

Commit

Permalink
Update twitter.mdx (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
lin-stephanie and delucis authored Oct 27, 2024
1 parent 553c1b1 commit 36f2176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/examples/tweet-with-js-dark.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import { Tweet } from '@astro-community/astro-embed-twitter';
Adding Twitter’s widget script will hydrate the HTML markup of `<Tweet>`.

```astro
<script src="https://platform.twitter.com/widgets.js"></script>
<script async src="https://platform.twitter.com/widgets.js"></script>
<Tweet theme="dark" id="https://twitter.com/astrodotbuild/status/1632809919291457537" />
```

The above code produces the following result:

<script src="https://platform.twitter.com/widgets.js"></script>
<script async src="https://platform.twitter.com/widgets.js"></script>

<Tweet theme="dark" id="https://twitter.com/astrodotbuild/status/1632809919291457537" />

Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/examples/tweet-with-js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import { Tweet } from '@astro-community/astro-embed-twitter';
Adding Twitter’s widget script will hydrate the HTML markup of `<Tweet>`.

```astro
<script src="https://platform.twitter.com/widgets.js"></script>
<script async src="https://platform.twitter.com/widgets.js"></script>
<Tweet id="https://twitter.com/astrodotbuild/status/1632809919291457537" />
```

The above code produces the following result:

<script src="https://platform.twitter.com/widgets.js"></script>
<script async src="https://platform.twitter.com/widgets.js"></script>

<Tweet id="https://twitter.com/astrodotbuild/status/1632809919291457537" />

Expand Down

0 comments on commit 36f2176

Please sign in to comment.