add shortcode on-off [on/off]
This commit is contained in:
parent
8bec21a29b
commit
ae4f84f944
8
layouts/shortcodes/on-off.html
Normal file
8
layouts/shortcodes/on-off.html
Normal file
@ -0,0 +1,8 @@
|
||||
{{ $mode := .Get 0 }}
|
||||
{{ if eq $mode "on" }}
|
||||
<img src="{{ .Page.Site.BaseURL }}img/on-off/switch-on-icon_smal.png" alt="On">
|
||||
{{ else if eq $mode "off"}}
|
||||
<img src="{{ .Page.Site.BaseURL }}img/on-off/switch-off-icon_smal.png" alt="Off">
|
||||
{{ else }}
|
||||
???
|
||||
{{end}}
|
Loading…
Reference in New Issue
Block a user