mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Enable border by default on media
This commit is contained in:
parent
a75d49e8bc
commit
943fb83324
@ -1,9 +1,9 @@
|
||||
{{ $hidecaption := index . "hidecaption" }}
|
||||
|
||||
{{ if index . "border" }}
|
||||
<figure class="border">
|
||||
{{ else }}
|
||||
{{ if index . "noborder" }}
|
||||
<figure>
|
||||
{{ else }}
|
||||
<figure class="border">
|
||||
{{ end }}
|
||||
{{ with index . "src" }}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
||||
|
||||
{{ $border := false }}
|
||||
{{ if .Get "border" }}
|
||||
{{ $border = true }}
|
||||
{{ $noborder := false }}
|
||||
{{ if .Get "noborder" }}
|
||||
{{ $noborder = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ $hidecaption := false }}
|
||||
@ -11,5 +11,5 @@
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
{{ partial "figure.html" (dict "src" $resource "border" $border "hidecaption" $hidecaption) }}
|
||||
{{ partial "figure.html" (dict "src" $resource "noborder" $noborder "hidecaption" $hidecaption) }}
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user