Recently I began using Jekyll and I must say, this is something I really wanted…
I always wanted to write some blog, but definitely not with classic tools. What is the first thing that comes to your mind when someone says that he or she wants a new blog? WordPress, Blogger or some other tool?
Well, I don’t like these online blog platforms. I don’t even know why, maybe because I hasn’t got complete control over my website. I don’t really know.
And WordPress… Hmm, as PHP programmer I have to say definitely not. Lets see official example for list of posts..
the_title()? Really? In 2014? In time where my PHP version on VPS is 5.5.9?
<ul> <?php $args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; wp_reset_postdata();?> </ul>
But then I was thinking that keeping posts in repository would be really great. No database migrations at deployment process or creating database at all. I was even working on blog system where all posts were loaded (with REST API) from my private bitbucket repository, but there were some problems and it didn’t felt “right”…
And then week ago, I started playing with Jekyll and… Just wow.. All posts and pages in repository, written in brilliant Markdown language and insanely simple deployment. Only the documentation is not so good I think…
So one big thanks to Jekyll team, writing new posts is finally fun to me.