hexo-theme-particlex 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/layout/index.ejs +1 -1
- package/package.json +1 -1
- package/source/js/lib/home.js +1 -1
package/layout/index.ejs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="home-head">
|
2
|
-
<div id="home-background" ref="homeBackground" data-image="
|
2
|
+
<div id="home-background" ref="homeBackground" data-image="<%- url_for(theme.background) %>"></div>
|
3
3
|
<% if (theme.headBlockEnable) { %>
|
4
4
|
<div id="home-info" @click="homeClick">
|
5
5
|
<span class="loop"></span>
|
package/package.json
CHANGED
package/source/js/lib/home.js
CHANGED
@@ -4,7 +4,7 @@ mixins.home = {
|
|
4
4
|
background = this.$refs.homeBackground;
|
5
5
|
menu.classList.add("menu-color");
|
6
6
|
let image = background.dataset.image.split(",");
|
7
|
-
let id = Math.floor(Math.random * image.length);
|
7
|
+
let id = Math.floor(Math.random() * image.length);
|
8
8
|
background.style.backgroundImage = `url('${image[id]}')`;
|
9
9
|
},
|
10
10
|
methods: {
|