backup: 2025-06-30

This commit is contained in:
Marsway 2025-06-30 16:13:46 +08:00
commit c64260d6ed
17 changed files with 22938 additions and 0 deletions

7
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20

8
.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
_multiconfig.yml

1
.npmrc Normal file
View File

@ -0,0 +1 @@
registry=http://mirrors.cloud.tencent.com/npm/

5
_admin-config.yml Normal file
View File

@ -0,0 +1,5 @@
options:
overwriteImages: true
lineNumbers: true
editor:
lineNumbers: true

0
_config.landscape.yml Normal file
View File

131
_config.yml Normal file
View File

@ -0,0 +1,131 @@
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Mars之路
subtitle: ''
description: ''
keywords:
author: Liwei
language: zh
timezone: 'Asia/Shanghai'
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: http://www.marsway.red
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: anatole
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repo: https://git.weirainy.cn/liwei/hexo-blog.git
branch: main
message: Hexo update
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
tagMode: false
debug: false
model:
use: live2d-widget-model-tororo
display:
position: left
width: 200
height: 400
hOffset: 5
vOffset: -38
mobile:
show: false
scale: 0.2
react:
opacityDefault: 0.8
opacityOnHover: 0.2

87
nohup.out Normal file
View File

@ -0,0 +1,87 @@
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO Validating config
INFO Start processing
INFO Bye!
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO Validating config
ERROR Plugin load failed: hexo-renderer-sass
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:22:11)
at Object.<anonymous> (/home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at req (/home/ubuntu/blogger/node_modules/hexo/lib/hexo/index.js:292:23)
at /home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/hexo-renderer-sass@0.1.2/node_modules/hexo-renderer-sass/index.js:1:79
at /home/ubuntu/blogger/node_modules/hexo/lib/hexo/index.js:305:14
at tryCatcher (/home/ubuntu/blogger/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:476:21)
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO Validating config
ERROR Plugin load failed: hexo-renderer-sass
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:22:11)
at Object.<anonymous> (/home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at req (/home/ubuntu/blogger/node_modules/hexo/lib/hexo/index.js:292:23)
at /home/ubuntu/blogger/themes/anatole/node_modules/.pnpm/hexo-renderer-sass@0.1.2/node_modules/hexo-renderer-sass/index.js:1:79
at /home/ubuntu/blogger/node_modules/hexo/lib/hexo/index.js:305:14
at tryCatcher (/home/ubuntu/blogger/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/ubuntu/blogger/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/home/ubuntu/blogger/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:476:21)
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
INFO Validating config
ERROR Plugin load failed: hexo-renderer-sass
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/opt/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:22:11)
at Object.<anonymous> (/opt/blogger/themes/anatole/node_modules/.pnpm/node-sass@2.1.1/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at req (/opt/blogger/node_modules/.pnpm/hexo@6.3.0_chokidar@3.6.0/node_modules/hexo/lib/hexo/index.js:292:23)
at /opt/blogger/themes/anatole/node_modules/.pnpm/hexo-renderer-sass@0.1.2/node_modules/hexo-renderer-sass/index.js:1:79
at /opt/blogger/node_modules/.pnpm/hexo@6.3.0_chokidar@3.6.0/node_modules/hexo/lib/hexo/index.js:305:14
at tryCatcher (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/opt/blogger/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:476:21)
INFO Start processing
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.

13780
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

35
package.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "6.3.0"
},
"dependencies": {
"hexo": "^6.3.0",
"hexo-admin": "^2.3.0",
"hexo-deployer-git": "^3.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-helper-live2d": "^3.1.1",
"hexo-render-pug": "^2.1.4",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-stylus": "^2.1.0",
"hexo-server": "^3.0.0",
"hexo-tag-aplayer": "^3.0.4",
"hexo-theme-aomori": "^1.36.0",
"hexo-theme-landscape": "^0.0.3",
"live2d-widget-model-tororo": "^1.0.5",
"node-sass": "^9.0.0"
}
}

8696
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

4
scaffolds/draft.md Normal file
View File

@ -0,0 +1,4 @@
---
title: {{ title }}
tags:
---

4
scaffolds/page.md Normal file
View File

@ -0,0 +1,4 @@
---
title: {{ title }}
date: {{ date }}
---

5
scaffolds/post.md Normal file
View File

@ -0,0 +1,5 @@
---
title: {{ title }}
date: {{ date }}
tags:
---

View File

@ -0,0 +1,173 @@
---
title: 光速搭建个人博客网站!
author: Vvvvv-
tags: []
categories:
- 技术分享
date: 2023-01-22 15:02:00
---
---
# 授课笔记
## 怎么样制作一个公开的网站
### 工具
- 网站的源代码
- IP地址/域名
- 维护方式
- 现成的框架与开源的社区
- Wordpress
- Typecho
- Hexo
- Docsify
### 最简单公开:生成一个二维码(理工男的浪漫)
- [草料二维码](https://cli.im/) 科技的终点是人文。
- 妈妈我爱你
### 公开平台
- 短文字(微博、知乎)
- 短视频(抖音、快手)
- 长视频B站 yyds
- 长文(知乎、简书)
- 生活资讯(小红书)
- 最大的个人IP平台微信公众号
### 个人公众号的制作
### 网站制作
1. 部署网站框架Github、Gitee 码云)
2. 托管后,与域名链接
3. 域名访问
---
# 网站部署工具I - 利用Docsify展示MD文件
## 准备工作
- 包管理器 Node.jsnpm nodejs package manager
- 开源框架 Docsify
- 内容 Markdown Typora
## 开始安装
### 安装包管理器 npm
[Node.JS 官网](nodejs.cn) 根据平台下载 LTS 版本。
验证是否安装成功Windows 系统下打开命令行,快捷键`Win+R`,输入 cmd 回车`(即Command)`
输入 `npm --version` ,如有结果则正确
### 安装 Docsify
1. `npm i docsify-cli -g` 安装 Docsify 包 i = install
2. 找一个顺眼的文件夹存储目录,在 cmd 中打开(见下方技巧)
3. [初始化项目](https://docsify.js.org/#/zh-cn/quickstart?id=初始化项目) `docsify init` init (initialize) 初始化, 输入Y
4. 预览网页 `docsify serve` serve 即服务
### 制作网页
更改初始化完的目录中的`README.md`文件即可,可用 Typora 打开。
### 部署方式
1. 打开Gitee.com进行注册
2. 新建一个仓库仓库名与个人空间地址相同。选择设置模板——readme文件。
3. 点击服务——Gitee Pages进行实名认证。
4. 点回代码页,点击文件——新建文件夹。
5. 在新建文件夹中上传 Docsify 文件。
6. 再次打开Gitee Pages分支不变目录填新建的文件夹。点击启动即可。
7. 更改 README.md 即可更改内容,更新即可。
---
### Markdown 语法
- `### ` 标题
- `*内容*`斜体 `**内容**` 粗体
- `代码``` ` 行内
- 列表
- 无序列表
- *-+
- 有序列表
- 1.
- 分割线 `---`
## cmd 技巧
1. 工作目录 输入盘符 : 切换磁盘
2. `cd` (change directory) + 要切换的目录
3. `cd..` .. 表示上一级目录 . 表示当前目录
4. `dir`显示当前目录的文件
---
# 网站部署工具 II - 利用Hexo制作静态博客
## 准备工作
- 了解开源:热爱共享 和 开放自由(黑客->极客)
- 史蒂夫·乔布斯、沃兹尼克 APPLE I红皮书的故事
- 最出名的开源社区Github.com / OpenResty / OpenSSL
- 国内开源社区Gitee.com 码云 / Coding.net / OSCHINA
- 安装 NPM 管理器 https://nodejs.cn 一路下一步,不要更改任何东西
- 验证是否装好:`npm --version`
## 使用Hexo
### 初始化步骤(只需运行一次)
1. 安装 Hexo 管理器直接在cmd中运行`npm install -g hexo-cli ` 验证是否装好: `hexo`
2. 安装 Githttps://registry.npmmirror.com/binary.html?path=git-for-windows/v2.35.1.windows.2/
下载 Git-2.35.1.2-64-bit.exe一路下一步啥都别管
3. 找一个顺眼的文件夹右键在此处打开Git Bash Here输入`hexo init`运行
4. 运行 `npm install` , 初始化完成
### 配置网站
1. 预览效果 `hexo s`
2. 写内容,新建一个网页 `hexo new 网页名字`
3. 找到 md 文件,`/source/_posts/`目录里找到新建的文件,改动后保存即可,刷新即看效果
### 更换主题
1. 打开官网https://hexo.io/zh-cn/docs点击上方的 Themes可以找到许多主题选择一个
2. 跟随文档说明进行安装通常是打开本地的hexo目录进行 Git Clone 操作.
## 部署网站
1. 安装 [hexo-deployer-git](https://github.com/hexojs/hexo-deployer-git). 命令为`npm install --save hexo-deployer-git`
2. 在 **_config.yml**(如果有已存在的请删除)添加如下配置:
repo 网址在个人仓库中 - 克隆/下载 - 复制,注意空格
`
deploy:
type: git
repo: https://gitee.com/fallcityv/fallcityv.git
branch: master
`
3. 运行 `hexo clean && hexo deploy |代替hexo d` 。如出现`deploy done`则表示成功
注意:用户名填邮箱或手机号,输密码不会显示,输完回车即可。
4. 打开 Gitee Pages 服务,部署目录空,直接更新或启动。
## 作业
注册`gitee.com` 完成实名认证,将网站部署到公网

0
themes/.gitkeep Normal file
View File

1
themes/Anatolo Submodule

@ -0,0 +1 @@
Subproject commit 89dd9798e07b505f29ca6eee5ca9cd36581c3f9c

1
themes/anatole Submodule

@ -0,0 +1 @@
Subproject commit 0244f923907073042d4a7479a8f29876ac578c4b