Create main parts of short codes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<video controls
|
||||
{{ with .Get "poster" }}poster="{{ . }}"{{ end }}
|
||||
{{ with .Get "width" }}width="{{ . }}"{{ end }}
|
||||
{{ with .Get "height" }}height="{{ . }}"{{ end }}
|
||||
>
|
||||
<source
|
||||
{{ with .Get "type" }}type="{{ . }}"{{ end }}
|
||||
src="{{ (.Page.Resources.GetMatch (.Get "src")).RelPermalink }}"
|
||||
>
|
||||
</video>
|
||||
Reference in New Issue
Block a user