mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 09:57:30 -05:00
Small shortcode cleanuo & use .IsNamedParams
This commit is contained in:
@ -1,4 +1,9 @@
|
||||
{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ $resource := "" }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $resource = $.Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ else }}
|
||||
{{ $resource = $.Page.Resources.GetMatch (.Get 0) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $noborder := false }}
|
||||
{{ if .Get "noborder" }}
|
||||
|
Reference in New Issue
Block a user