Skip to content

Commit

Permalink
feat: add third app vimeo
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Feb 24, 2024
1 parent 61f9c89 commit 6d50dc8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- [Third Party Apps](third-party/index.md)
- [Gist](third-party/gist.md)
- [Vimeo](third-party/vimeo.md)
- [Giscus](third-party/giscus.md)
- [Youtube](third-party/youtube.md)
- [Codepen](third-party/codepen.md)
Expand Down
22 changes: 22 additions & 0 deletions docs/src/third-party/vimeo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Vimeo

Vimeo is a video hosting platform that allows you to upload and share videos.

## Options

| Option | Description | Required | Default |
| :------ | :----------- | :------- | :------ |
| id | Video ID | Yes | - - |
| loading | Loading type | No | lazy |

## Example

<!-- embed ignore begin -->

```text
{% embed vimeo id="914391191" loading="lazy" %}
```

<!-- embed ignore end -->

{% embed vimeo id="914391191" loading="lazy" %}
7 changes: 7 additions & 0 deletions templates/vimeo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<iframe
name="vimeo"
loading="{% raw(loading=lazy) %}"
allow="autoplay; fullscreen; picture-in-picture"
src="https://player.vimeo.com/video/{% raw(id) %}"
style="width: 100%; height: 100%; border: none; aspect-ratio: 16/9; border-radius: 1rem; background: black"
></iframe>

0 comments on commit 6d50dc8

Please sign in to comment.