1
0
mirror of https://github.com/BBaoVanC/bobatheme.git synced 2025-06-20 12:37:29 -05:00
Files
archetypes
assets
data
exampleSite
i18n
layouts
_default
authors
partials
series
shortcodes
aside.html
figure.html
image.html
video.html
tags
taxonomy
index.html
robots.txt
.editorconfig
.gitignore
.gitmodules
LICENSE
README.md
config.yaml
theme.toml
bobatheme/layouts/shortcodes/video.html

14 lines
331 B
HTML

{{ $border := false }}
{{ if .Get "border" }}
{{ $border = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ end }}
<p>
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }}
</p>