hexo-theme-particlex 2.5.1 → 2.5.4

Sign up to get free protection for your applications and to get access to all the features.
package/layout/import.ejs CHANGED
@@ -43,7 +43,7 @@
43
43
  <script src="https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js"></script>
44
44
  <% } %>
45
45
  <% } %>
46
- <% if (type === "index") %>
46
+ <% if (type === "index") { %>
47
47
  <script src="<%- url_for("/js/lib/home.js") %>"></script>
48
- <% %>
48
+ <% } %>
49
49
  <link rel="stylesheet" href="<%- url_for("/css/main.css") %>" />
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.4",
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: {