Helpers

Helpers

You can think of these Jekyll helpers as little shortcuts. Since GitHub Pages doesn’t allow most plugins — custom tags are out. Instead the theme leverages includes to do something similar.

Base Path

Instead of repeating {{ site.url }}{{ site.baseurl }} over and over again to create absolute URLs, you can use {{ base_path }} instead. Simply add {% include base_path %} to layouts, posts, pages, collections, or other includes and you’re good to go.

ProTip: It’s a good practice to prepend all assets links (especially post images) with {{ base_path }} so they correctly resolve in the site’s XML feeds.