当在当前标签页和窗口打开一个新页面时,将显示进度条。
Module | github.com/hbstack/progress-bar |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
Name | Type | Require | Default | Description |
---|---|---|---|---|
height | string | - | 2px | 进度条的高度。 |
initial_width | number | - | 20 | 进度条初始宽度,0-100 。 |
interval | number | - | 50 | 进度条更新的时间间隔,单位:毫秒。 |
time | number | - | 2 | 进度条完成所需的时间,单位:秒。 |
hugo.toml
1[params]
2 [params.hb]
3 [params.hb.progress_bar]
4 height = '2px'
5 initial_width = 20
6 interval = 50
7 time = 2
hugo.yaml
1params:
2 hb:
3 progress_bar:
4 height: 2px
5 initial_width: 20
6 interval: 50
7 time: 2
hugo.json
1{
2 "params": {
3 "hb": {
4 "progress_bar": {
5 "height": "2px",
6 "initial_width": 20,
7 "interval": 50,
8 "time": 2
9 }
10 }
11 }
12}