A better sitemap for jekyll

jekyll sitemap use site.time for lastmod so it doesn’t really reflect the actual last modified date of the post but the last updated date of the site instead. I’m not so sure if lastmod attribute has much effect on Google’s crawl rate/SEO to your site since it’s optional but I’m a little picky even when it comes to small thing like this. Since last modified date is available from the source file, it should be generated automatically from that.

jekyll full-text search without jQuery or plugin

I did a quick search for full-text search solutions for jekyll (or any static websites). A notable fews have come up in search result: jekyll-lunr-js-search index_tank tapir lunr-js-search A quick look at the plugin’s dependency, I give up right away even though I only need that on search page. For the very same reason I opted for jekyll - a static site generator, I want my site to load as fast as possible.

Paginated post plugin for jekyll

I was wondering if anyone has created one like this before and stumbled across this issue on octopress repo. imathis came up with this proposition for paginated post. The primary page would be the standard post url. Successive pages would be at post-url/2/index.html, etc. The atom feed will still show the full un-broken post. A unified post will live at post-url/all/index.html containing a print-friendly, un-broken version of the post.

How to use jekyll plugins with GitHub Pages

Very cool idea by @randymorris. Basically, actual source will now live in the source branch and generated content (_site folder) will be in master instead. Make changes in the source branch Build and test the site locally Commit changes to source branch git publish-website which consists of the following steps git branch -D master git checkout -b master git filter-branch --subdirectory-filter _site/ -f git checkout source git push --all origin This is actually similar to the approach: develope locally and rsync _site folder with your VPS/host public folder but works with GitHub Pages.

Writing your first jekyll plugin

jekyll documentation is actually a very good source if you want to learn about writing a jekyll plugin. I highly recommend you to read that first. There are many examples at the end of the page as well. Jekyll has a plugin system with hooks that allow you to create custom generated content specific to your site. You can run custom code for your site without having to modify the Jekyll source itself.

Monthly/yearly post archive generator plugin for jekyll

Basically, this plugin will generate a archive based on your specified layout so that you can access it at url like At first, I thought this is one of the default feature of jekyll but I was mistaken toto for jekyll. toto was another static site generator that I used before. Anyway, this is what you are gonna get at the end. I’m not the author of this plugin.

BetterTube - A jekyll plugin for embedding YouTube videos

Sample syntax {%raw%} {% youtube %} {%endraw%} or even shorter {% raw %} {% youtube NiYCgVKioI4 %} {% endraw %} Basically, this plugin will replace your youtube tag with a beautiful, responsive thumbnail of the video instead of loading the iframe and a bunch of other stuff along with that iframe, right on page load (pagespeed, remember?). On click, it will replace the image with the iframe for embedding video and play (autoplay=1).