Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove YouTube #781

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menu:
weight: -99
---

{{< youtube id="IPSbNdBmWKE" caption="An introductory video explaining basic Mastodon concepts with visual animations" >}}
{{< peertube id="7a087e5f-68e0-4359-8035-bfd9752e9b2e" caption="An introductory video explaining basic Mastodon concepts with visual animations" instance="peertube.social" >}}

## What is a microblog? {#microblogging}

Expand Down
16 changes: 8 additions & 8 deletions content/en/entities/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ menu:
{{< tab title="video" >}}
```javascript
{
"url": "https://www.youtube.com/watch?v=OMv_EPMED8Y",
"title": "♪ Brand New Friend (Christmas Song!)",
"url": "https://peertube.social/videos/watch/7a087e5f-68e0-4359-8035-bfd9752e9b2e",
"title": "What is Mastodon ?",
"description": "",
"type": "video",
"author_name": "YOGSCAST Lewis & Simon",
"author_url": "https://www.youtube.com/user/BlueXephos",
"provider_name": "YouTube",
"provider_url": "https://www.youtube.com/",
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/OMv_EPMED8Y?feature=oembed\" frameborder=\"0\" allowfullscreen=\"\"></iframe>",
"author_name": "Opensource",
"author_url": "https://peertube.social/video-channels/[email protected]",
"provider_name": "Peertube",
"provider_url": "https://peertube.social",
"html": "<iframe width='480' height='270' sandbox='allow-same-origin allow-scripts allow-popups' src='https://peertube.social/videos/embed/7a087e5f-68e0-4359-8035-bfd9752e9b2e' frameborder='0' allowfullscreen></iframe>",
"width": 480,
"height": 270,
"image": "https://files.mastodon.social/preview_cards/images/014/179/145/original/9cf4b7cf5567b569.jpeg",
"image": "https://peertube.social/static/previews/7a087e5f-68e0-4359-8035-bfd9752e9b2e.jpg",
"embed_url": ""
}
```
Expand Down
16 changes: 8 additions & 8 deletions content/en/methods/statuses.md
Original file line number Diff line number Diff line change
Expand Up @@ -1482,18 +1482,18 @@ ID of the status in the database

```javascript
{
"url": "https://www.youtube.com/watch?v=OMv_EPMED8Y",
"title": "♪ Brand New Friend (Christmas Song!)",
"url": "https://peertube.social/videos/watch/7a087e5f-68e0-4359-8035-bfd9752e9b2e",
resynth1943 marked this conversation as resolved.
Show resolved Hide resolved
"title": "What is Mastodon ?",
"description": "",
"type": "video",
"author_name": "YOGSCAST Lewis & Simon",
"author_url": "https://www.youtube.com/user/BlueXephos",
"provider_name": "YouTube",
"provider_url": "https://www.youtube.com/",
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/OMv_EPMED8Y?feature=oembed\" frameborder=\"0\" allowfullscreen=\"\"></iframe>",
"author_name": "Opensource",
resynth1943 marked this conversation as resolved.
Show resolved Hide resolved
"author_url": "https://peertube.social/video-channels/[email protected]",
"provider_name": "Peertube",
"provider_url": "https://peertube.social",
"html": "<iframe width='480' height='270' sandbox='allow-same-origin allow-scripts allow-popups' src='https://peertube.social/videos/embed/7a087e5f-68e0-4359-8035-bfd9752e9b2e' frameborder='0' allowfullscreen></iframe>",
"width": 480,
"height": 270,
"image": "https://files.mastodon.social/preview_cards/images/014/179/145/original/9cf4b7cf5567b569.jpeg",
"image": "https://peertube.social/static/previews/7a087e5f-68e0-4359-8035-bfd9752e9b2e.jpg",
"embed_url": ""
}
```
Expand Down
10 changes: 10 additions & 0 deletions layouts/shortcodes/peertube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<figure>
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe src='https://{{- .Get "instance"}}/videos/embed/{{ .Get "id" }}' style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="{{ .Get "caption" }}"></iframe>
</div>

<figcaption>
<p>{{- .Get "caption" | markdownify -}}</p>
</figcaption>
</figure>