add image shortcode
This commit is contained in:
parent
d9bcef641e
commit
7e8ddd7939
5 changed files with 11 additions and 6 deletions
3
layouts/shortcodes/image.html
Normal file
3
layouts/shortcodes/image.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<center>
|
||||
<img width="80%" src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" />
|
||||
</center>
|
|
@ -1,4 +1,6 @@
|
|||
<video width="100%" preload="{{ .Get "preload" }}" controls>
|
||||
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
|
||||
Your browser does not seem to support the video {{ .Get "src" }}.
|
||||
</video>
|
||||
<center>
|
||||
<video width="80%" preload="auto" controls>
|
||||
<source src="{{ .Get "src" }}" />
|
||||
Your browser does not seem to support the video {{ .Get "src" }}.
|
||||
</video>
|
||||
</center>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue