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