he
This commit is contained in:
parent
d7f5f7dbd8
commit
cd7dd9d472
2 changed files with 17 additions and 1 deletions
|
@ -529,4 +529,5 @@ https://s.werobot.fr//blog/bob-ross/5de7d3e87eb60/50.jpg
|
||||||
https://s.werobot.fr//blog/bob-ross/5de7d3ee8714f/50.jpg
|
https://s.werobot.fr//blog/bob-ross/5de7d3ee8714f/50.jpg
|
||||||
https://s.werobot.fr//blog/bob-ross/20190915_182329.mp4
|
https://s.werobot.fr//blog/bob-ross/20190915_182329.mp4
|
||||||
https://s.werobot.fr//25-09-2019-bpm-vernon-interview.mp3
|
https://s.werobot.fr//25-09-2019-bpm-vernon-interview.mp3
|
||||||
https://werobot.fr/images/logo.png
|
https://werobot.fr/images/logo.png
|
||||||
|
https://s.werobot.fr//blog/bob-ross/63cbb53f9b1b5/75.jpg
|
|
@ -5,4 +5,19 @@
|
||||||
{{ $code = (.Get "src") }}
|
{{ $code = (.Get "src") }}
|
||||||
{{ $code = (strings.ReplaceRE `(http(?:s)?:\/\/(?:www\.)?youtu(?:(?:be\.com)|(?:\.be))|(?:be-nocookie\.com))\/(?:(?:watch\?v=)|(?:embed\/)|(?:\/v\/))?(.+)?(?:\&|\?)` "" $code) }}
|
{{ $code = (strings.ReplaceRE `(http(?:s)?:\/\/(?:www\.)?youtu(?:(?:be\.com)|(?:\.be))|(?:be-nocookie\.com))\/(?:(?:watch\?v=)|(?:embed\/)|(?:\/v\/))?(.+)?(?:\&|\?)` "" $code) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if (.Get "iframemode") }}
|
||||||
|
<center>
|
||||||
|
<iframe class=youtubelink src="https://youtube.com/embed/{{ $code }}?cc_load_policy=1&cc_lang_pref=fr&hl=fr-FR&autohide=2&wmode=transparent" allowfullscreen="true"></iframe>
|
||||||
|
</center>
|
||||||
|
</center>
|
||||||
|
{{ else }}
|
||||||
|
<center>
|
||||||
<a class=youtubelink href="https://youtu.be/{{ $code }}"><img src="http://i3.ytimg.com/vi/{{ $code }}/hqdefault.jpg"/></a>
|
<a class=youtubelink href="https://youtu.be/{{ $code }}"><img src="http://i3.ytimg.com/vi/{{ $code }}/hqdefault.jpg"/></a>
|
||||||
|
</center>
|
||||||
|
{{ end }}
|
||||||
|
<style>
|
||||||
|
.youtubelink{
|
||||||
|
width:100%;
|
||||||
|
height:597;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue