Jekyll: Post Loop in Liquid Templates

Posted in Notes on 17 October 2019

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.