hello
This commit is contained in:
parent
dbf2851d1e
commit
9a3f24609c
1 changed files with 2 additions and 4 deletions
|
@ -3,8 +3,6 @@
|
||||||
{{ $code = (.Get "code") }}
|
{{ $code = (.Get "code") }}
|
||||||
{{ else if (.Get "src") }}
|
{{ else if (.Get "src") }}
|
||||||
{{ $code = (.Get "src") }}
|
{{ $code = (.Get "src") }}
|
||||||
{{ (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) }}
|
||||||
|
<a class=youtubelink href="https://youtu.be/{{ $code }}"><img src="http://i3.ytimg.com/vi/{{ $code }}/hqdefault.jpg"/></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img src="http://i3.ytimg.com/vi/{{ .Get "code" }}/hqdefault.jpg"/>
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue