Source: www.amitmerchant.com

How to include HTML files in Jekyll

Category: PHP, javascript

A blog on PHP, JavaScript and more Amit Merchant · July 7, 2020 · ⋆ Jekyll For instance, the “Recently Published” section of the sidebar on this site contains 5 recently added articles.

Note: Keep in mind, the _includes is the only folder where all your html goes that you want to “include” at various places. Now, all I need to do to include is to use following format in the file you want include the file. In my case, I wanted to include this in sidebar.html and here’s how I included it.
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