zapatista.kompot.si/README.md

39 lines
2.3 KiB
Markdown

## Link do sajta:
<https://zapatista.kompot.si>
*[Pico CMS (dokumentacija, plugins, themes)](https://picocms.org/)*
#### Markdown Guide
[Basic Syntax](https://www.markdownguide.org/basic-syntax/) | [Extended Syntax](https://www.markdownguide.org/extended-syntax/) | [Hitra referenca - "plonklistek"](https://www.markdownguide.org/cheat-sheet/)
#### Katerikoli video embed
Deluje povsod v vsebini, razen v stranski vrstici, kjer je še vedno potrebno kopirat posamezne embede, ki so navedeni nižje.
```
[video *LINK*]
```
Primeri:
```
[video https://kolektiva.media/videos/embed/a5c6b8e1-6e9e-4a89-ace4-03b6cf97ce07]
[video https://kolektiva.media/w/mtiCL28GP9gzLC2FPKjs6v]
[video https://tube.mfraters.net/videos/watch/9a2b78db-ef05-4770-9196-8a1fcd243f43]
[video https://vimeo.com/566821117]
[video https://player.vimeo.com/video/566821117]
[video https://youtu.be/NkdUs2Dxv4s]
[video https://www.youtube.com/watch?v=NkdUs2Dxv4s]
[video https://www.youtube.com/embed/NkdUs2Dxv4s]
```
#### PeerTube Video embed
Primer <https://kino.kompot.si> video. Pod videom klikneš na gumb "Share" in izbereš zavihek "Embed", ki ti generira kodo z za embedanje, ki jo potem vstaviš v pejđev markdown. če rabiš več kostumizacije je v "Embed" zavihku spodaj možnost "More customization". <https://docs.joinpeertube.org/use-watch-video?id=sharing-a-video> <https://thinkmoult.com/embed-peertube-video-on-your-website.html>
**Lepši embed čez vso širino elementa** dobiš če iframe oviješ z `<div class="video">` ter `</div>` in pa ifram-u NE določiš "width" ter "height".
primer: `<div class="video"><iframe sandbox="allow-same-origin allow-scripts allow-popups" src="https://video.anartist.org/videos/embed/470f5abd-55e4-4708-a685-5715063387ea?warningTitle=0" frameborder="0" allowfullscreen></iframe></div>`
#### YouTube Video embed
navodila: <https://support.google.com/youtube/answer/171780?hl=en>
**Lepši embed čez vso širino elementa:** *na enak način kot v zgornjem primeru za PeerTube*
#### Vimeo Video embed
<div class="video"><iframe src="https://player.vimeo.com/video/*ŠTEVILKA_VIDEA*" allowfullscreen></iframe></div>
**Primer:** <div class="video"><iframe src="https://player.vimeo.com/video/565345244" allowfullscreen></iframe></div>