SitePoint
  • Premium
  • Library
  • Community
  • Save on SaaS
  • Jobs
  • Blog
LoginStart Free Trial
Preface
1

An Introduction to Hexo, a Node.js Static Site Generator

Code snippet

tags:  - welcome  - introcategories:  - general

If you run the server now and navigate to http://localhost:4000/, you’ll see the title of your post as well the tags and category.

Clicking on tags or category will present a list of all related posts. Great!

Adding Content

Our first post is created, and you can add some content in the Markdown format:

Code snippet

---title: Welcoming Postdate: 2019-03-11 19:22:32tags:  - welcome  - introcategories:  - general---
## My Blog is Live!
I am happy to announce that my blog is now live. Hooray!

Heading Levels

I’m using level 2 heading here (formatted with ##), because the page already contains an h1 with the name of the post itself.

Of course, you’re not limited to displaying some text in your posts. Hexo has a handful of special plugins (with a misleading name “tag plugins”). They can be used to display various content on the page: links, images, videos, blockquotes and so on.

End of PreviewSign Up to unlock the rest of this title.
On this page

Community Questions

Previous
Finish