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.
This pull request allows an easy option to enable/disable the sticky header. In _config.yml, the variable
sticky_header: true
orsticky_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 iftrue or site.sticky_header
. Just below this if statement, there is a comment explaining that modification of the source file is necessary ifsite.sticky_header
is defined.I tried to detect if
site.sticky_header
was defined in _config.yml but ran into unexpected difficulties.