Install jekyll firstly https://pcjustin.github.io/2017/09/17/install-jekyll-on-mac.html
And following the simple way to create your own blog.
1 | jekyll new my-awesome-site |
How to create a post
- create a folder names ‘_posts’
- add a post names ‘2017-01-01-my-first-blog.md’
- use markdown to write something
1 | --- |
How to modify blog name and something else
modify _config.yml
This file include many features what you want to.
1 | title: My blog |
Create more information
Modify about.md
1 | --- |
How to publish the post to github
- create a blog in github https://pages.github.com/
- publish the post to github
1
2
3git add _posts
git commit -m "my first blog"
git push -u origin masterHow to add page views
Many ways to support visitors counter and post views in your blog. Please following the simple way to support it.
create the own layout
Copy the ‘_includes’ and ‘_layouts’ to your blog. In Mac, you can use the command to find out the folder.
1 | open $(bundle show minima) |
add external javascript in head.html
1 | <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script> |
add visitors counter in footer.html
1 | <div class="footer-col footer-col-3"> |
add page views in post.html
1 | <p class="post-meta"> |
Something else
Now you can create the own blog or copy others into your blog.
If you want to learn how to use markdown for writing your post, you can following the link.
And you can find out more templates for improving the layout.