mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Remove video and add remote-figure shortcodes
This commit is contained in:
parent
47d6d02186
commit
a4be8b395b
@ -1,9 +1,4 @@
|
|||||||
{{ $resource := "" }}
|
{{ $resource := .Page.Resources.GetMatch (.Get "src") }}
|
||||||
{{ if .IsNamedParams }}
|
|
||||||
{{ $resource = $.Page.Resources.GetMatch (.Get "src") }}
|
|
||||||
{{ else }}
|
|
||||||
{{ $resource = $.Page.Resources.GetMatch (.Get 0) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $noborder := false }}
|
{{ $noborder := false }}
|
||||||
{{ if .Get "noborder" }}
|
{{ if .Get "noborder" }}
|
||||||
|
@ -9,5 +9,5 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "image" "alt" (.Get "alt")) }}
|
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" (.Get "type") "alt" (.Get "alt")) }}
|
||||||
</p>
|
</p>
|
@ -1,13 +0,0 @@
|
|||||||
{{ $border := false }}
|
|
||||||
{{ if .Get "border" }}
|
|
||||||
{{ $border = true }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $hidecaption := false }}
|
|
||||||
{{ if .Get "hidecaption" }}
|
|
||||||
{{ $hidecaption = true }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }}
|
|
||||||
</p>
|
|
Loading…
Reference in New Issue
Block a user