“This is the 18th day of my participation in the Gwen Challenge in November. See details: The Last Gwen Challenge in 2021.”
The introduction of personal blog foundation. Next time maybe some beautification.
Article front-matter introduction
Create a new article hexo new
Front-matter options are explained in detail
Everything in the front-matter option is optional. But I still recommend at least filling in the title and date values.
Configuration options | The default value | describe |
---|---|---|
title | Markdown File title of |
Article title, this option is strongly recommended |
date | Date and time when the file was created | Release time, it is strongly recommended to enter this option, and it is better to ensure that the global unique |
author | The root_config.yml In theauthor |
The authors |
img | featureImages A value in |
Article feature map, recommend the use of map bed (Tencent Cloud, qiniuyun, and shoot cloud, etc.) to do the picture path. Such as:http://xxx.com/xxx.jpg |
top | true |
Recommended article (whether the article is top), iftop A value oftrue , will be recommended as the home page article |
hide | false |
Hide the article ifhide A value oftrue , the article will not be displayed on the home page |
cover | false |
v1.0.2 Version added, indicating whether the article needs to be added to the home page rotation cover |
coverImg | There is no | v1.0.2 The new version indicates the image path to be displayed on the cover page of the article. If not, the featured image of the article is used by default |
password | There is no | Article read password, if you want to set a read authentication password for the article, this can be setpassword The value must be usedSHA256 The encrypted password is used to prevent others from discovering it. The premise is in the subjectconfig.yml The activation of theverifyPassword options |
toc | true |
Whether to enable TOC? You can disable TOC for a specific article. The premise is in the subjectconfig.yml The activation of thetoc options |
mathjax | false |
Whether to enable mathematical formula support, whether to enable this articlemathjax And need to be in the subject_config.yml It also needs to be opened in the file |
summary | There is no | Article summary, custom article summary content. If this property has a value, the article card summary will display this text, otherwise the program will automatically intercept part of the article as the summary |
categories | There is no | Article classification, the classification of this topic represents the macro classification, only one article is recommended for a classification |
tags | There is no | Article tags, an article can have multiple tags |
keywords | The article title | Article keywords, SEO need |
reprintPolicy | cc_by | Article reprint rules can be one of CC_BY, CC_BY_nd, CC_BY_sa, CC_BY_NC, CC_BY_NC_nd, CC_BY_NC_sa, CC0, noreprint or pay |
Personal Common Examples
CoverImg: /medias/banner/6.jpg Top: false cover: true toc: Categories: - Categories ABBRLink: 17FD92AE reprintPolicy: cc_by IMG: Image pathCopy the code
Hexo Clean && Hexo G-d Update operation
Create a new category, Tags, About, Contact, friends, 404 page
Enter hexo new Page “name” in the blog directory. The names are above.
Then open the md file in the corresponding directory and add:
Type: “layout” : “layout”
Add Valine comments
Find Valine in the _config.yml file of the theme, change the false in enable to true, and change the appId and appKey to your own application.
LeanCloud
Note: appId and appKey are registered on LeanCloud. Create an application after registration
After success, the picture is as follows:
When you’re done, open the Settings application credentials — fill the configuration file with the appId and appKey.
Modifying social Links
Find socialLink in the topic configuration file (_config.yml) and modify the corresponding URL
Modify the QR code picture of rewards
In the source/ Medias/Reward file of the theme file, you can replace it with your wechat and Alipay qr code pictures.