add theme
This commit is contained in:
12
themes/butterfly/layout/includes/loading/pace.pug
Normal file
12
themes/butterfly/layout/includes/loading/pace.pug
Normal file
@@ -0,0 +1,12 @@
|
||||
script.
|
||||
window.paceOptions = {
|
||||
restartOnPushState: false
|
||||
}
|
||||
|
||||
btf.addGlobalFn('pjaxSend', () => {
|
||||
Pace.restart()
|
||||
}, 'pace_restart')
|
||||
|
||||
|
||||
link(rel="stylesheet", href=url_for(theme.preloader.pace_css_url || theme.asset.pace_default_css))
|
||||
script(src=url_for(theme.asset.pace_js))
|
||||
Reference in New Issue
Block a user