mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
15 lines
610 B
HTML
15 lines
610 B
HTML
{{- $options := .Get "width" | default (.Get 0) | dict "width" -}}
|
|
{{- $options = .Get "height" | default (.Get 1) | dict "height" | merge $options -}}
|
|
{{- $options = .Get "js" | default false | dict "js" | merge $options -}}
|
|
{{- $options = .Get "async" | default false | dict "async" | merge $options -}}
|
|
{{- $options = .Get "data" | dict "data" | merge $options -}}
|
|
{{- $options = .Get "file" | dict "file" | merge $options -}}
|
|
{{- dict
|
|
"Options" $options
|
|
"Inner" .Inner
|
|
"Resources" .Page.Resources
|
|
"Position" .Position
|
|
| partial "plugin/echarts.html"
|
|
-}}
|
|
{{- .Page.Store.Set "hasEcharts" true -}}
|