进度条模块

本页内容

当在当前标签页和窗口打开一个新页面时,将显示进度条。

Modulegithub.com/hbstack/progress-bar
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

站点参数

NameTypeRequireDefaultDescription
heightstring-2px进度条的高度。
initial_widthnumber-20进度条初始宽度,0-100
intervalnumber-50进度条更新的时间间隔,单位:毫秒。
timenumber-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}