In this recipe, we will look at observing the don't repeat yourself principle. By separating our code into partials, and using Jekyll's front matter, we will achieve just that.
Splitting Jekyll files into partials
Getting ready
To start off, navigate to chapter10/complete/recipe2 and run the console from this folder. Start the Jekyll server by running the jekyll serve --watch console command. Open your browser, point it to localhost:4000 and preview the result. Click on some of the links on the navbar to see how it behaves.
How to do it...
- Open the folder titled...