📜 ⬆️ ⬇️

Jekyll and Github Blog

Jekyll and Github Blog


There are many excellent solutions for blogging: posterous, blogger, wp ... You can choose and you need to choose if you want to keep your blog, of course. Now I will talk about a relatively new geek solution in blogging - this is Jekyll blog based on Github.
Jekyll is a simple static site generator, ala blog. It contains templates for creating site logic. Thanks to Github Pages - the site can be hosted on Github. It's simple. Create a repository "Site Name" .github.com and publish the code of your site there on Jekyll. Commit + Push and Github automatically updates your site.

Why Jekyll + Github:



Instructions for use:



Sample Jekyll blog with source codes: source code / the site itself.

Go through the source:


_includes / (ready-made pieces of html to insert)
_layouts / (templates)
_posts / (articles)

Templates work with Liquid .
Names for posts require strict formatting ala year – month – day – name.format
Format: textile or markdown.
')
The post should include a header designating the pattern:
  ---
 layout: post
 title: "Post title"
 --- 

Advantages:

1) Github.
2) Works very very quickly -> 95 out of 100 points profiling through Google PageSpeed.
3) You can easily move to Heroku. (For example)
4) You can focus on the content and not worry about the implementation and platform.

Disadvantages:

1) It's not so easy to add: a gallery of photos, comments, tags, search, and so on.
2) To hide the source of your site you need a paid account, and this is just over $ 7. (corrected)
3) There is no database.

Conclusion


I like Jekyll and GitHub as hosting. This allows me to focus on what I write, and not on technical issues.
+ on jekyll + github: my blog .

Source: https://habr.com/ru/post/133261/


All Articles