Comments (6)
galleries.json
方便贴上来看看吧
from hexo-theme-zhaoo.
from hexo-theme-zhaoo.
找到问题了,random-image.js
随机数好像写错了
var count = images.length;
res = images[Math.floor(Math.random() * (count + 1))];
应该为
var count = images.length;
res = images[Math.floor(Math.random() * (count))];
我记得这玩意不是下标从 0 开始到 count - 1 的吗……
from hexo-theme-zhaoo.
找到问题了,
random-image.js
随机数好像写错了var count = images.length; res = images[Math.floor(Math.random() * (count + 1))];应该为
var count = images.length; res = images[Math.floor(Math.random() * (count))];我记得这玩意不是下标从 0 开始到 count - 1 的吗……
有道理,草率了!马上修复。
from hexo-theme-zhaoo.
好滴,另外我刚刚修锅的时候顺手把自定义图片列表的 feature 加上了,要不然我开个 PR 你看一下?可以留给可能有需要的人用,或者觉得自适应不够完美的时候也可以有个备选方案。
from hexo-theme-zhaoo.
好滴,另外我刚刚修锅的时候顺手把自定义图片列表的 feature 加上了,要不然我开个 PR 你看一下?可以留给可能有需要的人用,或者觉得自适应不够完美的时候也可以有个备选方案。
好滴!万分感谢!
from hexo-theme-zhaoo.
Related Issues (20)
- 关于引言部分的显示 HOT 1
- 黑夜模式下导航栏拉不下来 HOT 1
- 关于页面 HOT 1
- Social部分的问题 HOT 1
- 演示站点证书过期 HOT 1
- hexo-blog-encrypt 无法使用 HOT 4
- 文章目录默认开启状态下,没有目录会显示空白目录 HOT 1
- 请教大佬,Hexo如何让md文章中的代码在本地预览中有颜色? HOT 2
- 关于一个文章多个分类时, 分类页面显示不正常 HOT 2
- 导航栏层级的bug HOT 2
- analytics tencent website is closed. HOT 2
- 鼠标悬停在图片上会变灰 HOT 1
- 代码高亮无作用 HOT 2
- 关于手机端网页图片显示异常的反馈 HOT 1
- 请问如何添加友情链接页面?
- preview
- 数学公式超出页面宽度
- 如何自定义文章的摘要以及折叠阅读? HOT 1
- 代码高亮主题在变更后,高亮加载css的cdn报404 HOT 2
- 日期格式 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-zhaoo.