I noticed that you are using this menu logic in both the header and footer.  I would like to turn this into a single include much like the pages_list file works in jekyll bootstrap.