mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
8 lines
410 B
HTML
8 lines
410 B
HTML
{{- /* Echarts support for code fences extended and shortcodes. */ -}}
|
|
{{- $width := .Options.width | default "100%" -}}
|
|
{{- $height := .Options.height | default "30rem" -}}
|
|
{{- $attrs := printf `style="width: %v; height: %v;"` $width $height -}}
|
|
<div class="echarts" {{ $attrs | safeHTMLAttr }}></div>
|
|
<template>{{ .Inner | transform.Unmarshal | jsonify }}</template>
|
|
{{- page.Store.Set "hasEcharts" true -}}
|