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 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.