照片墙滚动加载

This commit is contained in:
结发受长生
2019-05-12 14:38:07 +08:00
parent 594e106612
commit afc370d284
11 changed files with 69 additions and 28 deletions
@@ -15,7 +15,7 @@ categories:
2. hexo clean && hexo generate
3. 图片与对象存储仓库同步
4. 生成的html文件的压缩
5. public目录中所有内容的拷贝发布
5. public目录中所有文件的拷贝发布
因为不想把主题和内容过多整合, 这样会导致将来更换主题困难
所以计划是把2 3 4 5步骤在构建过程中一键完成
@@ -58,9 +58,10 @@ try {
*/
```
上面的写法就如同是在命令行执行`hexo clean && hexo generate`
正好gulp配置任务的时候也需要返回Promise对象( 下面会提到 ), 正好能结合, 不需要二次封装了, 不错
正好gulp配置任务的时候也需要返回Promise对象( 下面会提到 ), 可以直接结合, 不需要二次封装了, 不错
### gulp
![gulp](/images/前端杂烩/gulp-2x.png)
之前没用过这个前端构建工具, 因为跟webpack的作用有不少的重合, 前端实在学不完
这里使用一下它的任务自动管理的功能, 整体的体验挺好
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+1 -1
View File
@@ -4,4 +4,4 @@ date: 2018-5-24 10:05:28
pageid: PhotoWall
---
<div id="photo-wall"></div>
<div id="photo-wall"></div><div id="load-top">正在加载ԅ( ¯་། ¯ԅ)</div>