Rename files
This commit is contained in:
parent
1f7188db3b
commit
6b87efa507
4 changed files with 3 additions and 3 deletions
|
@ -18,12 +18,12 @@ gulp.task('less', function () {
|
|||
});
|
||||
|
||||
gulp.task('uglify', function () {
|
||||
return gulp.src('./static/dark_theme/dark_theme.js')
|
||||
return gulp.src('./static/dark-theme/dark-theme.js')
|
||||
.pipe(uglify())
|
||||
.pipe(rename({
|
||||
extname: '.min.js'
|
||||
}))
|
||||
.pipe(gulp.dest('./static/dark_theme'));
|
||||
.pipe(gulp.dest('./static/dark-theme'));
|
||||
});
|
||||
|
||||
gulp.task('cp', function () {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe)
|
||||
}}
|
||||
<script id="dark-theme-script"
|
||||
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark_theme/dark_theme.min.js"
|
||||
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark-theme/dark-theme.min.js"
|
||||
data-enable-auto-detect-theme="{{ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE|default('false') }}"
|
||||
data-default-theme="{{ THEME_COLOR|default('light') }}"
|
||||
type="text/javascript">
|
||||
|
|
Loading…
Reference in a new issue