Installation

Learn how to install Hugo ECharts module.

Requirements

Import Module

hugo.yaml

1module:
2  imports:
3  - path: github.com/hugomods/echarts

hugo.toml

1[module]
2  [[module.imports]]
3    path = 'github.com/hugomods/echarts'

hugo.json

1{
2   "module": {
3      "imports": [
4         {
5            "path": "github.com/hugomods/echarts"
6         }
7      ]
8   }
9}

Include Templates

Please skip this step if your theme supports HugoPress, such as HB Framework themes.

Include the echarts/assets/script template near the end of <body> element, for example.

1<html>
2<body>
3  ...
4  {{ partial "echarts/assets/script" . }}
5</body>
6</html>