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

46 lines
954 B
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
```
docker run -d --restart=always --name nginx-web \
-v /home/netease/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \
-v /home/netease/docker/nginx/html:/usr/share/nginx/html \
-v /home/netease/docker/nginx/log:/var/log/nginx \
-v /etc/localtime:/etc/localtime:ro \
-p 80:80 \
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显示所有文章标签。