Caution: This post was published in 2019 and may contain information, techniques, or code examples that are no longer current. Please double-check official documentation and modern best practices before using anything from this article.

Jekyll: Post Loop in Liquid Templates

Jekyll uses the Liquid templating language to process templates. This post provides a basic example to show the five latest blog posts and highlight the first post.

The code consists of two loops, the first loop shows one post (the newest one) the second post shows the next four posts.

Latest posts

Website Speed Improvements

Website speed has become one of the most significant factors in determining user satisfaction and search performance. A slow-loading website can frustrate visitors, damage your brand’s credibility and, ultimately, cost…

Continue reading

Structured data for SEO

Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…

Continue reading

Using WordPress as a static site generator

Static site generators have gained significant traction amongst developers, designers, and businesses seeking faster, more secure websites. Unlike traditional dynamic sites, which rely on a database to deliver content on…

Continue reading

Simple steps to protect your privacy online

In today’s digital world, protecting your privacy online has become essential. With personal data constantly being shared, stored, and potentially accessed by unauthorised parties, safeguarding your privacy can help you…

Continue reading