加载进度条¶
参考:加载进度条
网页加载阶段的进度显示,提高用户操作体验
下载¶
$ cd themes/next
$ git clone https://github.com/theme-next/theme-next-pace source/lib/pace
配置¶
修改NexT _config.yml
# Progress bar in the top during page loading.
# Dependencies: https://github.com/theme-next/theme-next-pace
# For more information: https://github.com/HubSpot/pace
pace:
enable: false
# Themes list:
# big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple
# corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal
theme: minimal
包含了多种显示方式,demo
参考Themes
当前选择center-atom