Improve figures

- Add option to disable border and caption
This commit is contained in:
2021-10-27 09:48:13 -05:00
parent 0cfecdab18
commit 7ffa6c068c
5 changed files with 29 additions and 4 deletions

View File

@ -1,2 +1,15 @@
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
{{ partial "figure.html" $resource }}
{{ $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>