johnkeith / boldandblue

A bold, but minimal Octopress theme
29 stars 8 forks source link

Adds cleaner option to enable/disable sticky header #12

Open stsievert opened 9 years ago

stsievert commented 9 years ago

This pull request allows an easy option to enable/disable the sticky header. In _config.yml, the variable sticky_header: true or sticky_header: false can be included.

By default, the sticky header remains enabled. In after_footer.html, there is an if statement that enables the sticky header if true or site.sticky_header. Just below this if statement, there is a comment explaining that modification of the source file is necessary if site.sticky_header is defined.

I tried to detect if site.sticky_header was defined in _config.yml but ran into unexpected difficulties.