"Tools" use Hexo to build blogs _hexo

Source: Internet
Author: User
Tags buy domain buy domain name

2016-10-05 Preface

Take advantage of the 11 holiday has a lot of free time, Baidu How to use Hexo Build blog, here record the process, by the way test seven Neu Yun storage.

Technology changes too quickly and the entire build process does not guarantee permanent validity. Build a blog

Operating system: WIN10

node:v6.2.0 x64

git:2.10.1 x64

Hexo's Reference Document: Hexo Chinese document for the Geek College translation

This article: Use Hexo to build Github.io blog (a) basically the whole process is clear, I also follow the idea of this article to come, so here do not repeat, write only some of the problems encountered. Node.js and git are very slow to download from the website.

Can not download from the official website and downloaded after downloading, but there are some ways to download the file is problematic, will cause installation failure, need attention. Error 2503 and 2502 are encountered while installing Node.js.

This problem is caused by Windows permissions issues and will be installed as an administrator.

Reference from: Win8 install Nodejs error 2503 and 2502 resolution with localhost:4000 for Web Page preview failed.

There is not necessarily a problem with your own configuration, the default port is 4000 when the HEXO server is executed, but Win10 seems to be taking up the port, swapping it for other ports, perhaps running locally, such as Hexo Server-p 3600, using localhost:3600 on access.

Reference self-knowledge: Win10 install Hexo with NPM encounter problems next topic use

Hexo has a lot of themes, and I chose a more popular theme: NexT.

Use the subject for reference: Next use the document, which is an official document that basically answers all my questions. The following are some of the problems in use: the tag Cloud "Matlab" "PDF" will fail

"PDF" for "PDFF" can be, this is why. Change "Matlab" to "Matlabb" can, why.

It shouldn't be my problem. Share

Use more say share link is not to point to blog URL, later used jiathis. Change the width of an article

For Pisces Scheme, the width of the header, the width of the. Main-inner, and the width of the. Content-wrap need to be modified at the same time. For example, use percentages (Pisces layouts are defined in Source/css/_schemes/picses/_layout.styl):

header{width:80%}/* 80%
/* container. Main-inner {width:80%}/* 80% {content-wrap
(100% -260px); }

The above 3 lines of code in the "Themes\next\source\css_schemes\pisces_layout.styl" file in the 3 locations, search can be obtained. Instead of deleting the original code, I used a "//" comment to avoid the day I wanted to change it back.

Reference: Feel the browser too much white, code block looks more troublesome #759 Hexo blog writing How to display a summary.

Multiple tags with markdown statements

Usage: Tags: [tags 1, tags 2, tags 3] (English comma)

Reference: Hexo How to set multiple tags ah ... Markdown Symbol Escape

If I want to multiplication, writing directly will conflict with markdown syntax, * is markdown italic. You can use the \ Escape.

Reference: How to escape the vertical bar when writing Hexo blog with Markdown. Formula

Consider using the latex formula. Use of pictures

Use seven cow cloud to save picture, call outside chain in MD file.

I use the picture is not very large, directly with the seven Neu Yun Web page upload function. Seven Neu Yun do not have the concept of a directory, so rely on the prefix to classify. Otherwise, it is difficult to manage the file more. Domain name

Chose the aliyun of the million nets.

Practice:

Go to million net to buy domain name directly, I buy is shanchuantian.com (first year 55RMB, renew fee is now 60rmb/year)

Resolves the domain name, resolves the shanchuantian.com, and adds 2 resolutions: 192.30.252.153 and 192.30.252.154 (GitHub's server). )。 Add cname, back to the blog Project root directory, under source/a new file named CNAME, inside the content written to shanchuantian.com can be redeployed blog.

Reference: Hexo Blog Advanced-albums and independent domain names

Q: Using a seven-Neu Yun mirror can improve access speed. If you change the computer, which files need to be transferred

Black is a folder and green is a file.

How to update the same blog with two computers

Current ideas: Because it is in the notebook to build Hexo, write an article only need to add a MD file in the _post, so use the nut cloud will _post folder synchronization, you can write a blog on the desktop and notebook, release or to use a notebook. There are no two computers configured, because you have to change the configuration on both sides, with the nut cloud can solve the problem, but feel that there is no need to sync so many files.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.