Files
BlueRoseNote/07-Other/Node.js/Hexo/Hexo-Theme-Aurora主题笔记.md

55 lines
1.7 KiB
Markdown
Raw Normal View History

2025-09-24 17:50:30 +08:00
# Setup
1. hexo init
2. 在项目根目录安装插件hexo-plugin-aurora 1.8.4。
3. 在Theme中拉取项目 https://github.com/auroral-ui/hexo-theme-aurora
1. 安装pnpm
2. pnpm install
4. 运行npm run clean & build
5. 查看结果。
2025-09-24 19:02:15 +08:00
## Nginx
```
2025-09-24 20:51:47 +08:00
docker run -d --restart=always --name nginx \
2025-09-24 19:02:15 +08:00
-v /home/netease/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \
2025-09-24 19:54:21 +08:00
-v /home/netease/docker/nginx/html:/etc/nginx/html \
2025-09-24 19:02:15 +08:00
-v /home/netease/docker/nginx/log:/var/log/nginx \
2025-09-24 20:51:47 +08:00
-v /home/netease/docker/nginx/ssl:/etc/ssl \
2025-09-24 19:02:15 +08:00
-v /etc/localtime:/etc/localtime:ro \
-p 80:80 \
nginx
```
2025-09-24 19:54:21 +08:00
10.219.103.35
2025-09-24 20:51:47 +08:00
## SSL
- [03-证书系统自动更新脚本.md](https://sa.nie.netease.com/docs/cert/%E8%BF%90%E7%BB%B4%E6%94%AF%E6%92%91/Cert/06-%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C/03-%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/03-%E8%AF%81%E4%B9%A6%E7%B3%BB%E7%BB%9F%E8%87%AA%E5%8A%A8%E6%9B%B4%E6%96%B0%E8%84%9A%E6%9C%AC.md#%E4%BA%94%E3%80%81%E5%B8%B8%E8%A7%81%E5%AE%89%E8%A3%85%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86)
cert2bot config -u loujiajie -k 9110f789a8234f3bafcc5c3b8b81bcf1 -a https://auth.nie.netease.com -c https://cert2.nie.netease.com
cert2bot update -i -c CHAIN:FREE:DV:b0c46970-e21d-44cb-bd00-9e21c8ccbef3 -k /home/netease/docker/nginx/ssl/ta.netease.com_key.pem -f /home/netease/docker/nginx/ssl/ta.netease.com_fullchain.pem --reload-cmd="docker restart nginx"
2025-09-23 16:21:17 +08:00
# 主题配色
主题css位于
- styles
- theme-variables.scss
# 数据存储
## appStore
- theme
- themeConfig
- hexoConfig
2025-09-23 18:49:37 +08:00
# 页面
主体App.vue逻辑位于main.ts。
2025-09-23 19:54:35 +08:00
## Component
2025-09-23 18:49:37 +08:00
头部导航栏:/components/Header/src/Header.vue
2025-09-23 19:54:35 +08:00
FooterContainer
Navigator
2025-09-23 18:49:37 +08:00
2025-09-23 19:54:35 +08:00
## Pages
存储hexo 文章模板。
2025-09-23 16:21:17 +08:00
2025-09-23 19:54:35 +08:00
- about.vue
- archives.vue
- category.vue
- index.vue
- links.vue
- tags.vue显示所有文章标签。