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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners