当前位置:网站首页>Blog building I: Framework selection
Blog building I: Framework selection
2022-07-23 12:34:00 【King who personally patrols the mountain】
My blog :https://ziyue.tech
1· install nodejs、git
Download link :https://nodejs.org/en/ 、https://git-scm.com/
After installation, check whether the installation is successful
win + R -> cmd , Enter commands in it
node -v
v12.19.0 # Version number
npm -v
6.14.8
git --version
git version 2.37.1.windows.1
· install hexo
npm install hexo-cli -g
C:\Users\kai\AppData\Roaming\npm\hexo -> C:\Users\kai\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.3.2 (node_modules\hexo-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ [email protected]
updated 1 package in 17.95s
Check hexo Is the installation successful
hexo -v
hexo-cli: 4.3.0
os: win32 10.0.19044
node: 12.19.0
v8: 7.8.279.23-node.44
uv: 1.39.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.16.0
modules: 72
nghttp2: 1.41.0
napi: 7
llhttp: 2.1.2
http_parser: 2.9.3
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0
2· establish GitHub Account and create a new warehouse , notes :GitHub The warehouse should be open
establish Blog Local storage folder , Right click to open a folder git bash here, The following operations are in git Lower operation .
Generate ssh
ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [[email protected]]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command [argument ...]]
Bind mail (github Email address at the time of registration )
ssh-keygen -t rsa -C "[email protected]"
stay github Add in ssh secret key
open C:\Users\kai\ .ssh Under the document id_rsa.pub( Public key ), Copy
github in settings->SSH and GPG keys->New SSH key, Fill in the first box at will , Paste the key in the second box .
ssh -T [email protected]
initialization hexo
hexo init
INFO Start blogging with Hexo!
Static interface generation
hexo s
Token validation
Open the generated by initialization _config.yml file (blog Local storage folder ), Modify the final code
deploy:
type: git
repository: https://github.com/c2h5oc2h5/c2h5oc2h5.github.io.git # Your warehouse address
branch: main
stay blog Under the folder git bash here
npm install hexo-deployer-git --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ [email protected]
added 1 package from 1 contributor and audited 242 packages in 12.431s
18 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
success
Generate page
hexo g
Upload
hexo d
Input again
hexo d
Authentication token
hexo d
INFO Validating config
INFO Deploying: git
INFO Setting up Git deployment...
Initialized empty Git repository in D:/Blog/.deploy_git/.git/
Author identity unknown
*** Please tell me who you are.
Run( matters needing attention )
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got '[email protected](none)')
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (D:\Blog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:314:20)
at ChildProcess.cp.emit (D:\Blog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
The solution to this error
git config --global user.email "[email protected]"
git config --global user.name "c2h5oc2h5"
And then verify
hexo d
INFO Deploy done: git
Follow the prompts to log in GitHub binding git
There are two ways :
One is web page binding ; The other is to enter the user name and token at the time of registration , Token generation Settings->Developer settings->Personal access tokens-> Generate new token, Check... As needed , Copy the generated token , Paste it into the frame .
3· How to blog
In the local \Blog file \source_posts It's written inside md file
Then update the third company
hexo clean
hexo g
hexo d
4· Remember to operate for three consecutive times every time you modify
5· How to see your blog address
边栏推荐
- 钢结构基本原理题库
- Lvgl8.1 version notes
- Data analysis (II)
- 永磁电机参数的测量获取(电感、电阻、极对数、磁链常数)
- 高电压技术重点知识整理
- 输入三角形边长,求面积
- Deep convolution generation countermeasure network
- [talent column] can't you use Apache dolphin scheduler? It takes a month to write the most comprehensive introductory teaching [2]
- Interpretation of the paper: iterative feature representation method to improve the prediction performance of N7 methylguanosine (m7G) sites
- 博客搭建四:将自己的博客加入百度和谷歌收录的方法
猜你喜欢

【学习总结】

Interpretation of the paper: develop a prediction model based on multi-layer deep learning to identify DNA N4 methylcytosine modification

C语言小项目——学生成绩管理系统

NLP natural language processing - Introduction to machine learning and natural language processing (2)

Talent column | can't use Apache dolphin scheduler? The most complete introductory tutorial written by the boss in a month

Practical convolution correlation trick

输入三角形边长,求面积

高分子物理名词解释归纳

Interpretation of the paper: develop and verify the deep learning system to classify the etiology of macular hole and predict the anatomical results
![[AUTOSAR com 3. signal sending and receiving process tx/rx]](/img/f7/e5f89a51cf990ede61ce342e88e5d6.png)
[AUTOSAR com 3. signal sending and receiving process tx/rx]
随机推荐
[distinguish the meaning and usage of constant pointer and pointer constants const int * and int * const]
Deep learning neural network
单片机学习笔记8--按键和外部中断(基于百问网STM32F103系列教程)
K-nucleotide frequencies (KNF) or k-mer frequencies
【AUTOSAR CanDrive 2.了解通信Hoh、CanId与PduID的Mapping关系】
Use steps of Charles' packet capturing
1、经济学十大原理
Examen des principes fondamentaux de la structure en acier
高电压技术基础知识
匿名上位机v7波形显示
Hardware knowledge 1 -- Schematic diagram and interface type (based on Baiwen hardware operation Daquan video tutorial)
With statement
高分子合成工艺学复习考题
The online seminar on how to help data scientists improve data insight was held on June 8
Installation and use of APP automated testing tool appium
【AUTOSAR DCM 1.模块简介(DSL,DSD,DSP)】
永磁电机参数的测量获取(电感、电阻、极对数、磁链常数)
单片机学习笔记6--中断系统(基于百问网STM32F103系列教程)
博客搭建三:评论系统选择
Using Google or tools to solve logical problems: Zebra problem