DEV Community

Olimpio
Olimpio

Posted on

3 1

Jekyll is slow... Liquid is awesome

I am learning Hugo... I love the way it is fast but its templating syntax is just horrible... Jekyll is slow compared to Hugo but Jekyll template syntax Liquid makes it fun to develop static sites using Jekyll... your thougths?

Top comments (2)

Collapse
 
ungive profile image
Jonas

Jekyll 4 is actually very fast. I've had the same sensation with Jekyll 3.8 when I was playing around with GitHub Pages (which hasn't upgraded to version 4 yet). It took around 4 seconds to build the site despite the fact that I only changed one file in an unmeaningful way.

What I did to resolve the problem was the following: I set my JEKYLL_ENV environment variable to "development" and added a conditional in my Gemfile which included jekyll v4 when I'm developing and github-pages otherwise. Then I ran bundle install to update my local packages, et voilà – Making changes now rebuilds the site pretty much instantly. I only have to make sure I don't use any new features of Jekyll 4 while GitHub doesn't support it, but that's a compromise I am happy to make.

Side note: I also use live.js so my site refreshes when I hit CTRL+S.

Collapse
 
rnrnshn profile image
Olimpio

I haven't heard about live.js I'll give it a shot...

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay