hexo-theme-particlex 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/layout/index.ejs CHANGED
@@ -1,5 +1,5 @@
1
1
  <div id="home-head">
2
- <div id="home-background" ref="homeBackground" data-image="<% url_for(theme.background) %>"></div>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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: {