mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
9 lines
406 B
HTML
9 lines
406 B
HTML
{{- $content := .Inner | transform.Unmarshal | jsonify -}}
|
|
{{- $width := cond .IsNamedParams (.Get "width") (.Get 0) | default "100%" -}}
|
|
{{- $height := cond .IsNamedParams (.Get "height") (.Get 1) | default "30rem" -}}
|
|
{{- $attrs := printf `style="width: %v; height: %v;"` $width $height -}}
|
|
<div class="echarts" {{ $attrs | safeHTMLAttr }}>
|
|
<template>{{ $content }}</template>
|
|
</div>
|
|
{{- /* EOF */ -}}
|