Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Mar 14, 2024
1 parent 76d9032 commit febfad3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/_default/_markup/render-codeblock-echarts.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{{- $options = $options | transform.Unmarshal | jsonify }}
{{- end }}
{{- $ctx := dict
"page" .Page
"caller" "codeblock"
"ordinal" .Ordinal
"js" $js
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/echarts/chart.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $echarts := site.Params.echarts }}
{{- $page := .page }}
{{- $params := .params }}
{{- $options := .options }}
{{- $js := .js }}
Expand Down Expand Up @@ -50,5 +51,5 @@
{{ if $js }}data-echarts-options-var="{{ $jsVar }}"{{ end }}>
</div>
{{- if $js }}
{{- page.Store.SetInMap "eChartsJSVars" $jsVar $options }}
{{- $page.Store.SetInMap "eChartsJSVars" $jsVar $options }}
{{- end }}
1 change: 1 addition & 0 deletions layouts/shortcodes/echarts.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
{{- end }}
{{- end }}
{{- $ctx := dict
"page" .Page
"caller" "shortcode"
"ordinal" .Ordinal
"js" $js
Expand Down

0 comments on commit febfad3

Please sign in to comment.