Learn how to install Hugo ECharts module.
Become a backer or sponsor to support our work.
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}
Please import github.com/hbstack/echarts
instead if you’re using HB Framework themes.
Note
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.
If you don’t know how, please request help from the theme author.
1<html>
2<body>
3 ...
4 {{ partial "echarts/assets/script" . }}
5</body>
6</html>