urbanlaunchpad / new-market-goods

The digital storefront for New Market Goods
http://urbanlaunchpad.github.io/new-market-goods/
4 stars 5 forks source link

Consistent header / footer across all pages #74

Closed ohsk closed 9 years ago

ohsk commented 9 years ago

Exploring how to pull in a constant separate html header (and footer, although this varies on a few of the pages...).

buzoherbert commented 9 years ago

Recipe: https://www.youtube.com/watch?v=_J5Gw_j-FyQ

buzoherbert commented 9 years ago

Github doesn't run PHP scripts, we sould need to host the site in another server to make this enhancement posible. Otherwise, the fix is really easy...

https://stackoverflow.com/questions/10837946/how-to-publish-php-page-instead-of-html-at-github-to-demo-some-php-content

ohsk commented 9 years ago

Ah I see... That's tricky. Do you think it's doable with HTML?

contolini commented 9 years ago

GitHub Pages supports Jekyll which can do includes pretty easily.

ohsk commented 9 years ago

@contolini ooooohhh

Do we have to add anything else to implement Jekyll? Or could we literally just plop in {% include footer.html %}? n00bs over here.

contolini commented 9 years ago

Here's the bare minimum if you want to start using Jekyll. Eventually you should probably make a proper template with layouts and stuff.

A tutorial: http://jekyllbootstrap.com/lessons/jekyll-introduction.html.

ohsk commented 9 years ago

THX @contolini. @buzoherbert shuttin' this down.