mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
16 lines
338 B
HTML
16 lines
338 B
HTML
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
|
|
|
{{ $border := false }}
|
|
{{ if .Get "border" }}
|
|
{{ $border = true }}
|
|
{{ end }}
|
|
|
|
{{ $hidecaption := false }}
|
|
{{ if .Get "hidecaption" }}
|
|
{{ $hidecaption = true }}
|
|
{{ end }}
|
|
|
|
<p>
|
|
{{ partial "figure.html" (dict "src" $resource "border" $border "hidecaption" $hidecaption) }}
|
|
</p>
|