This commit is contained in:
GZod01 2024-05-17 20:35:54 +02:00
parent d860e3d987
commit c8008a4f20
208 changed files with 8919 additions and 146 deletions

View file

@ -0,0 +1,5 @@
<a href="{{ .Get "url" }}">{{ .Inner }}</a>
{{/* utilisation: }}
{{<machin url="https://example.com">}}Hello{{</machin>}}
{{ */}}

View file

@ -0,0 +1,10 @@
{{ $code := "helloworld" }}
{{ if (.Get "code") }}
{{ $code = (.Get "code") }}
{{ else if (.Get "src") }}
{{ $code = (.Get "src") }}
{{ (strings.ReplaceRE `(http(?:s)?:\/\/(?:www\.)?youtu(?:(?:be\.com)|(?:\.be))|(?:be-nocookie\.com))\/(?:(?:watch\?v=)|(?:embed\/)|(?:\/v\/))?(.+)?(?:\&|\?)` "" $code) }}
{{ end }}
<img src="http://i3.ytimg.com/vi/{{ .Get "code" }}/hqdefault.jpg"/>