第一步 在_config.anzhiyu.yml
下的menu:
添加
1 2 3 4 关于: 关于本人: /about/ || anzhiyu-icon-paper-plane 想做的事: /todolist/ || anzhiyu-icon-stream 本站日志: /update/ || anzhiyu-icon-bolt
第二步
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 Hexo new page update ```md --- title: 更新日志 date : 2024-09-23 00:00:00type : updatecomments: false aside: false top_img: false --- {% tip home %}本站日记是后面建的,前面有些时间对不上可能{% endtip %} {% timeline 2024 %} <!-- timeline 10-29 --> [增加网站统计](https://blog.667408.xyz/posts/263c605d) [文章改成永久链接](https://blog.667408.xyz/posts/614e46f9) <!-- endtimeline --> <!-- timeline 10-28 --> [友人帐换了一个样式](https://blog.667408.xyz/posts/936c664c) [增加页脚动物园](https://blog.667408.xyz/posts/15b5a328) <!-- endtimeline --> <!-- timeline 10-08 --> [增加来访者信息](https://blog.667408.xyz/posts/2370fd62) <!-- endtimeline --> <!-- timeline 10-07 --> [把博客源码上传到github](https://blog.667408.xyz/posts/c6ad5cda) <!-- endtimeline --> <!-- timeline 09-27 --> [添加追番页面](https://blog.667408.xyz/posts/e3ca322b) <!-- endtimeline --> <!-- timeline 09-26 --> [增加了文章卡片的擦亮动画](https://blog.667408.xyz/posts/7208a5f5) [添加待办清单](https://blog.667408.xyz/posts/b47abf66) <!-- endtimeline --> <!-- timeline 09-25 --> [添加游戏收藏页](https://blog.667408.xyz/posts/a4d0465e) <!-- endtimeline --> <!-- timeline 09-23 --> 本站诞生日 <!-- endtimeline --> {% endtimeline %}
第三步
在source/_data
下新建update.yml
文件,并添加以下内容:
1 2 3 4 5 6 - top_background: "https://s11.ax1x.com/2023/12/20/pioqoNT.jpg" class_name: "日志" description: "本站日志" tip: "这里是本站的更新日志" buttonLink: "https://blog.667408.xyz/about/" buttonText: "关于本站"
第四步
在themes/anzhiyu/layout/page.pug
中添加以下内容,注意缩进对应,+是给你看的,记得删除
1 2 3 4 5 6 7 8 9 10 when 'music' include includes/page/music.pug when 'todolist' include includes/page/todolist.pug when 'games' include includes/page/games.pug when 'envelope' include includes/page/envelope.pug + when 'update' + include includes/page/update.pug
第五步
在themes/anzhiyu/layout/includes/page
下新建update.pug
文件,并添加以下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #update if site.data.update each i in site.data.update .author-content.author-content-item.UpdatePage.single(style = `background: url(${i.top_background}) left 37% / cover no-repeat !important;`) .card-content .author-content-item-tips=i.class_name span.author-content-item-title=i.description .content-bottom .tips=i.tip .banner-button-group a.banner-button(href=i.buttonLink) i.anzhiyufont.anzhiyu-icon-arrow-circle-right(style='font-size: 1.3rem') span.banner-button-text=i.buttonText #article-container != page.content
一键三连 1 2 3 hexo clean; hexo g; hexo s