Personal blog address http://lx.nextdev.top
This article describes how to use Coding Page + HEXO no cost to build a personal blog.
Environmental requirements:
Environment must be:
Start
-
Quick Start
Open
cmd
Input:
npm install -g hexo-cli
New hexo Project:
hexo init <项目名称>
Then install depend on:
npm install
carry out!
-
Edit site configuration
In
_config.yml
can modify the configuration.Website main configurations:
title: 博客的名称
subtitle: 副标题
description: 博客的短描述
author: 作者
language: zh-Hans
Domain configuration:
url: 你的域名
root: 网站根目录,默认为/
permalink: 文章URL配置
Theme configuration:
theme: 在这里可以设置主题
Recommended next topic
git configuration:
deploy:
type: git
repo: 项目库地址
branch: 分支
Once configured, enter:
npm install hexo-deployer-git --save
OK! Blog configuration finished
Use Next topic
start using
With cmd
open hexo
project directory, enter:
git clone https://github.com/iissnan/hexo-theme-next themes/next
Open the site configuration file, modify the following code:
theme: next
run
In cmd
type:
hexo g
Then enter:
hexo s
Open your browser and enter:
http://localhost:4000/
success!
Deployed to the coding
In cmd
type:
hexo d
expand
The following theme configuration file \博客\themes\next\_config.yml
-
Turn cool background:
Open the theme configuration file and find:
canvas_nest: false
Read:
canvas_nest: true
-
Adding a reward function
Open the theme configuration file, modify the following
reward_comment: 打赏信息
wechatpay: 微信扫码支付的图片地址
alipay: 支付宝扫码支付的图片地址
Well, your blog so far, has been set up is complete.
This article is reproduced in: ape 2048➧ https://www.mk2048.com/blog/blog.php?id=hakajabijib