Content dump and hide apprentice docs for now...
This commit is contained in:
@@ -5,6 +5,6 @@
|
||||
{{ $content := .Inner }}
|
||||
{{ $in := split .Inner "\n" }}
|
||||
{{ if gt (len $in) 1 }}
|
||||
{{ $content = (delimit (after 1 $in) "\n") }}
|
||||
{{ $content = (delimit $in "\n") }}
|
||||
{{ end }}
|
||||
{{ transform.Highlight (htmlUnescape $content) (.Get 0) (delimit $opts ",") }}
|
9
layouts/shortcodes/video.html
Normal file
9
layouts/shortcodes/video.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<video
|
||||
width='{{ with.Get 2 }}{{ . }}{{ else }}100%{{ end }}'
|
||||
height='{{ with .Get 3 }}{{ . }}{{ else }}100%{{ end }}'
|
||||
{{ with .Get 1 }}{{ . }}{{ else }}controls{{ end }}>
|
||||
{{ with resources.Get (.Get 0) }}
|
||||
<source src='{{ .RelPermalink }}' type='{{ .MediaType }}'>
|
||||
{{ end }}
|
||||
<b>Your browser does not support the video tag!</b>
|
||||
</video>
|
Reference in New Issue
Block a user