From the course: Learning GitHub Pages

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Create includes

Create includes

- [Instructor] If you look at the bottom of every page, I have this disclaimer section right here that I would like to convert into an include so that I can make it easier to update. Let's go ahead and show you how you can do an include folder where you can create templates or little pieces of code that you can then include in your markdown files. Let's go back into our code, and what you need to do is create a folder. This folder will be called includes, and in that folder, you can add a file. We'll call this file disclaimer.html. Let's try a different name here. We'll try just disc html. I could have created a markdown document but my disclaimer has some HTML already, so I'm just going to make it HTML. I think it's a little better sometimes than marked down or at least with a little bit more flexible. Here, I'm going to paste that text. I'll make this into a headline and I'll make this into a paragraph. Let's go…

Contents