Use Hexo to build Team Blog and hexo to build Team Blog

Source: Internet
Author: User
Tags yaml parser

Use Hexo to build Team Blog and hexo to build Team Blog

Build Team Blog with Hexo



First, you need to use Git that has been GitHub, and then let us know what a static Blog is.



Static blogs refer to blogs with rich templates that generate simple html css static content through template markup language without database drivers.


Common static Blog generators include the following types:

JekyllHttp://jekyllcn.com/Ruby

OctopressHttp://octopress.org/

HexoHttp://hexo.io/Nodejs

GhostHttps://ghost.org/

Dropbox + MarkDown = Blog, FarBox!


GitHub and DigtalOcean have recently provided a preferential policy. You can apply for $100 for free for all. edu mail accounts. You cannot miss a good opportunity. For details, refer to another post by the blogger.

Http://blog.csdn.net/jackrex/article/details/40071353


Use MarkDown to write a blog.

Http://wowubuntu.com/markdown/

Hexo is used to generate a static Blog.

Hexo

Reference http://hexo.io/docs/index.html


Installation:


What's npm


NPM nodejs packager manager nodejs Package manager


Official start, generate Blog

Create a repo repository on Github and name it teamname.github.com (team is your team name ).















Package. json npm configuration file





_ Config. yml hexo configuration file





Hexo help let's take a look at common hexo commands



Next we will start to generate our blog

Hexo init

Hexo g (generate)

Hexo s (server)

It works !!


It's an exciting time to visit.Http: // localhost: 4000/





Configure our github address in _ config. yml

Hexo deploy upload to our github


AccessHttp://alloyteammobile.github.io/

What is the situation?


It takes about half an hour to parse the website, cool and so on.

More topics

The interface is too ugly. Let's change to another theme.

Here are more theme options

Https://github.com/tommy351/hexo/wiki/Themes

Clone the desired topic to the local themes.

Modify theme in _ config. yml


Let's have an exciting visitHttp: // localhost: 4000/

What is the situation ??


Okay. You need to install the EJS parsing template.


Https://github.com/tommy351/hexo/releases/tag/2.6.0


Run the following command:



Open againHttp: // localhost: 4000/. It Works !!!!



Enjoy the topic

Hexo clean
Hexo generate
Hexo deploy


























Sometimes some theme may encounter some problems, such:



YAML parser was changed in Hexo 2.8. You have to wrap strings like this with quotation marks.

Archive_ B: Archives: % s => archive_ B: "Archives: % s"




Edit all of the yml file in the language folders of thirdparty theme, add quotation marks when there is a space between the values.





Archive_ B: Archives: % s => archive_ B: "Archives: % s"

What are the double quotation marks? Otherwise, an error will be parsed.




Good Blog good articles should certainly interact with everyone. integrate our comment system, Disqus or more. Let's talk more about it for the time being.






For more information, see the official documentation.

Officially started to write a Blog.



























Hexo plugin

Integrated





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.