个人网站/博客搭建教程

blog_AuroraEve3.0

之前以及部署好环境了

直接

1
2
3
hexo init blog_AuroraEve3
cd blog_AuroraEve3
git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu

打开 Hexo 根目录下的 config.yml, 找到以下配置项,把主题改为anzhiyu

1
2
3
4
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: anzhiyu #landscape

安装 pug 和 stylus 渲染插件

1
npm install hexo-renderer-pug hexo-renderer-stylus --save

windows 复制/themes/anzhiyu/_config.yml此文件到 hexo 根目录,并重命名为_config.anzhiyu.yml

以后如果修改任何主题配置,都只需修改 _config.anzhiyu.yml 的配置即可。

启动blog

1
hexo cl;hexo g;hexo s

最后更新于202503071050

标签页配置

1
hexo new page tags

你会找到 source/tags/index.md 这个文件

修改这个文件: 记得添加 type: "tags"

1
2
3
4
5
6
7
---
title: 标签
date: 2021-04-06 12:01:51
type: "tags"
comments: false
top_img: false
---

分类页配置

1
hexo new page categories

你会找到 source/categories/index.md 这个文件

修改这个文件: 记得添加 type: "categories"

1
2
3
4
5
6
7
---
title: 分类
date: 2022-02-23 17:56:00
aside: false
top_img: false
type: "categories"
---

内置阿里图标库:https://www.iconfont.cn/collections/detail?cid=44481

服务器选择

2025-云服务器专区 京东云 阿里云 腾讯云 配置最新价格表 与 官方活动地址.xlsx