Browse Docs

Installation

Learn how to install Hugo ECharts module.

Donate

Become a backer or sponsor to support our work.

Sponsors

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

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>