博客名称
除了 博客名称,在相同文件位置的 说明 和 作者 也一起修改。


修改根目录下的 _config.yml,更改 title description 和 author
1 2 3 4 5 6 7 8
| title: Zayck subtitle: '系统·高效·实用' description: '90后 分享生活 | 美学 摄影 文化 | 学习 思维 小众 <br /><br />公众号:少阳手记、少阳研究所' keywords: author: Zayck language: zh-CN timezone: ''
|
天气配置

修改根目录下 _config.anzhiyu.yml 的 nav
1 2 3 4 5
| # nav相关配置 nav: enable: false travelling: false clock: true
|
顶部按钮

这个配置在我的自定义 Edge 浏览器上有个小 BUG(firefox 浏览器上正常)——
移动到顶部按钮,下方会弹出二级菜单。
但是弹出二级菜单后,要去选择它,就死活选不上。
一旦移开顶部按钮,二级菜单就迅速隐藏,根本来不及点击。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| menu: # 文章: # 隧道: /archives/ || anzhiyu-icon-box-archive # 分类: /categories/ || anzhiyu-icon-shapes # 标签: /tags/ || anzhiyu-icon-tags # 友链: # 友人帐: /link/ || anzhiyu-icon-link # 朋友圈: /fcircle/ || anzhiyu-icon-artstation # 留言板: /comments/ || anzhiyu-icon-envelope
# 我的: # 音乐馆: /music/ || anzhiyu-icon-music # 追番页: /bangumis/ || anzhiyu-icon-bilibili # 相册集: /album/ || anzhiyu-icon-images # 小空调: /air-conditioner/ || anzhiyu-icon-fan
# 关于: # 关于本人: /about/ || anzhiyu-icon-paper-plane # 闲言碎语: /essay/ || anzhiyu-icon-lightbulb # 随便逛逛: javascript:toRandomPost() || anzhiyu-icon-shoe-prints1
|
我的做法是:将二级菜单删除,做成单一按钮,就能点击跳转。
1 2 3 4 5
| menu: 文章: /archives/ 音乐: /music/ 相册: /gallery/ 关于本站: /about/
|
音乐配置

博客根目录下打开 vscode,运行
打开 source/music/index.md 进行修改
1 2 3 4 5 6 7 8 9
| --- title: 音乐 date: 2023-08-20 23:08:30 type: music aplayer: true top_img: false comments: false aside: false ---
|
在 _config.yml 中添加以下数据
1 2 3 4 5
| # APlayer # https://github.com/MoePlayer/hexo-tag-aplayer/blob/master/docs/README-zh_cn.md aplayer: meting: true asset_inject: false
|
将 _config.anzhiyu.yml 里面 menu 中音乐的路径改为 /music/?id=9002792233&server=tencent,支持 id 和 server 的参数修改。
| 参数 |
描述 |
| id |
歌曲 ID / 播放列表 ID / 专辑 ID / 搜索关键字 |
| server |
音乐平台: netease;tencent;kugou;xiami;baidu |
相册配置

博客根目录下打开 vscode,运行
打开 source/gallery/index.md 进行修改,建立相册封面
1 2 3 4 5 6 7 8 9 10
| --- title: 相册 date: 2023-08-27 20:14:04 type: "gallery" ---
<div class="gallery-group-main"> {% galleryGroup 篆研 篆尚婉而通 '/gallery/calligraphy' https://f.pz.al/pzal/2023/08/21/63c520ad8f04b.jpg %} {% galleryGroup 证书 原来自己还是有那么一点东西的…… '/gallery//credential' https://f.pz.al/pzal/2023/08/21/7d12fc579e068.jpg %} </div>
|

新建对应的相册文件 source/gallery/calligraphy。在每一个对应页面,如 source/gallery/calligraphy/index.md 的详情页中,添加相应的内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| --- title: 篆研 date: 2023-08-27 20:14:04 type: "gallery_detail" ---
{% gallery true,,2 %}                {% endgallery %}
|
关于本站

博客根目录下打开 vscode,运行
打开 source/about/index.md 进行修改
1 2 3 4 5 6 7 8 9
| --- title: 关于本站 date: 2021-03-30 15:57:51 aside: false top_img: false background: "#f8f9fe" comments: false type: "about" ---
|
新建source/_data/about.yml,输入以下内容
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 47 48 49 50 51 52 53 54 55
| - class_name: 关于页 subtitle: avatarImg: https://f.pz.al/pzal/2023/08/30/cb8dc750b7ac9.png name: Zayck (少阳) description: 是一名 中医学生、博主 aboutsiteTips: tips: 追求 title1: 源于 title2: 热爱而去 感受 word: - 学习 - 生活 - 体验 - 记录
skillsTips: tips: 技能 title: 开启创造力 careers: tips: 生涯 title: 无限进步 item: - EDU,中医学专业 img: https://bu.dusays.com/2023/04/21/644287166329b.png
map: title: 我现在住在 StrengthenTitle: 中国,东莞市 background: https://f.pz.al/pzal/2023/08/25/6203bc3e5648e.jpg backgroundDark: https://f.pz.al/pzal/2023/08/25/6203bc3e5648e.jpg selfInfo: selfInfoTips1: 生于 selfInfoContentYear: 90后 selfInfoTips2: 专业 selfInfoContent2: 中医学 selfInfoTips3: 现在职业 selfInfoContent3: 大三学生👨🎓
personalities: author_name: 逻辑学家 personality_type: INTP-A photo_url: https://f.pz.al/pzal/2022/12/13/1ee0c368c399a.jpg personality_img: https://www.16personalities.com/static/images/personality-types/avatars/intp-logician-male.svg?v=2 name_url: https://www.16personalities.com/ch/intp-%E4%BA%BA%E6%A0%BC
like: like_tips: 关注偏好 like_title: 工作流、方法论 like_bg: https://f.pz.al/pzal/2022/12/16/bdef167ace833.jpg like_bottom: 效率软件 music: music_tips: 音乐偏好 music_title: 新世纪音乐、轻摇滚 music_bg: https://f.pz.al/pzal/2023/08/25/7118fd2f2153e.png music_link: /music/?id=9002792233&server=tencent
|
在 themes\anzhiyu\layout\includes\page\about. Pug 这个文件中,将 .hello-about 和对应的 .author-content 添加注释。
全文搜索

运行 hexo clean
💻安装插件
修改配置
修改根目录下 _config.anzhiyu.yml 的 Local search
1 2 3 4
| local_search: enable: true preload: true CDN:
|