Category: PHP, javascript

· September 2, 2020 · ⋆ Jekyll Lately, I wanted to show related posts on post pages based on the category the current post lies in. So, for instance, of the post belongs to the “Jekyll” category, I would fetch the recent five posts published under this category and show those on the post.

Before reading further, if you’re not aware of how to categorize your posts in Jekyll, I would highly recommend you to first read this article and come back again.

And that’s how you can show related posts for your current post in Jekyll!

Follow me on Twitter @amit_merchant Showing related posts based on the category of current post in Jekyll How to categorize your posts in Jekyll Live reload local Jekyll site in browser on file changes How to include HTML files in Jekyll Get your blog running in seconds with Jekyll in 2020 Showing related posts based on the category of current post in Jekyll Refactor related macros to classes using Mixins in Laravel Type annotate arguments for subset of a given type in TypeScript Difference between Export and Export Default in TypeScript How to categorize your posts in Jekyll
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners