put questions to
What technology can be used to quickly build a personal blog? The source code of the blog is written in markdown, or it can be static. The initial use of GitHub hosting.
Please have the experience to help share the use of tools, it is best to match a brief build process!
There are many ways to build a personal blog, but you need to use a third-party server. Your blog can be static or dynamic:
- Dynamic site: Web server (Apache, Tomcat, etc.) and database (mysql, etc.) are required. Your articles are stored in the database. With the help of web server, dynamic blog can achieve more complex functions. The available services include various application engines:Baidu application engine、Sina App Engine 、Google App EngineOf course, you can also use VPS or virtual machine:Alibaba cloud ECS、Amazon AWS。
- Static site: generate static HTML files every time you publish. You only need a static file server to serve your blog. The disadvantage of static blog is that the server only provides static file service, which is difficult to achieve more complex functions. However, in most cases, the static way is just in line with the characteristics of personal blog.Github PagesIs a good static service provider.
GitHub pages is recommended! It’s free and very stable, meeting most of the needs. Static site interactivity is not necessarily worse than dynamic site, such asMy blogThere are navigation, comments, drop-down refresh, directory and tags.
The specific process of using GitHub pages is recorded in this blog:Blog like geek, GitHub blog deployment tutorial, there is a very detailed build and deployment process.
Supported functions:
- Code highlighting
- Latex formula
- Drop down refresh
- Social commentary
- Automatic directory
- Filing, classification, tagging, latest articles
- sitemap.xml,feed.xml
I used some of them
- Jekyll
- OctoPress
- Hexo
- Sculpin
- Hugo
The comparative evaluation is shown inStatic site generators I used
in additionhereThere is a relatively complete collection
As far as I know, there are three kinds that meet your requirements
- jekyll – ruby
- hexo – node
- ghost – nide
The above are static blogs that can be hosted in GitHub and written with markdown
Google the specific steps
PHP, then the best is certainly WordPress. Very powerful, powerful plug-ins and good-looking theme support
PHP is relatively simple and more mature,
If you would have JS, you can go into the pit node.js
Here’s how to use it node.js Build your blog.
https://github.com/nswbmw/N-blog/wiki/_pages
hexo https://hexo.io/The official website of the related tutorial is very clear. Although there are not many topics to write articles with markdown, it is enough. You can also comment through the plug-in
You can use Jekyll’s blog engine to write blog like code and host it to github.io For specific referencehttp://jekyll.bootcss.com/
You can check the official document of GitHub pages, which explains everything.
https://pages.github.com
You can refer to this blog
http://www.ruanyifeng.com/blog/2012/08/blogging_with_jekyll.html
It’s a good introduction. The next step is to learn Jekyll, liquid markup language and write articles in markdown. With the basic foundation of front-end, you can realize an independent static blog that is beautiful and practical.
Of course, how beautiful depends on your CSS ability, but Jekyll also has its own library, which is pretty
Think about your blog. It’s all written in PHP. I bought alicloud’s space and domain name… Just play with GitHub pages!
I have to tell you
Gitblog is highly recommended
Gitblog is a simple and easy-to-use markdown blog system. It does not need a database and has no background management function. To update a blog, you only need to add the markdown file you have written. It gets rid of the difficulties of online editor typesetting and real-time preview, leaving everything to markdown to complete. A blog is a markdown file. It also supports comments, code highlighting, mathematical formulas, page PV statistics and other common functions. Gitblog provides different theme styles. You can configure them according to your preference. If you want to make your own blog theme, it’s also very easy. Gitblog also supports static export of the whole site. You can export static web pages of the whole site and deploy them to GitHub pages.
Gitblog official website
http://www.gitblog.cn/
Do not 998, as long as 98, the whole process of counseling blog building
Thank you for your adoption. I also built it in this way, but the corresponding version of this article is not very new. In the configuration of hexo
repository: https://github.com/cnfeat/cnfeat.github.io.git branch: master
The type should be changed to GIT.