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

16 lines
356 B
HTML

{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
{{ $noborder := false }}
{{ if .Get "noborder" }}
{{ $noborder = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ end }}
<p>
{{ partial "figure.html" (dict "src" $resource "noborder" $noborder "hidecaption" $hidecaption) }}
</p>