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

Choosing the right content management system

Choosing the right content management system (CMS) is one of the most consequential early decisions when building a website The content management system shapes everything from how editors publish to…

Continue reading

General-purpose AI assistants

Four AI assistants compared by power, privacy, integration and real-time awareness. ChatGPT, Gemini, Lumo and Grok are all general-purpose AI assistants, but they are built around markedly different priorities: overall…

Continue reading

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