Hexo中Masonry创建不同相册页面

- 在hexo-theme-redefine/layout/pages/masonry/masonry.ejs中,将
1 | const images = theme.masonry; |
修改为:
1 | const images = page.masonry |
- 在不同的页面Front-Matter中,定义使用的图片,比如:
1 |
|
- _data/masonry.yml文件必须保留且不为空,以保证masonry正确处理,比如:
1 | - image: 'image-placeholder' |
- Title: Hexo中Masonry创建不同相册页面
- Author: Micheal Chen
- Created at : 2025-03-28 18:44:57
- Updated at : 2025-03-28 21:05:18
- Link: https://www.xhis.com/hexo/2025/03/28/notes/Hexo中Masonry创建不同相册页面/
- License: This work is licensed under CC BY-NC-SA 4.0.