title: Jekyll - Automatically highlight current tab in menu bar
body: <p>I am using github to host a static site and Jekyll to generate it.</p>
  
  <p>I have a menu bar (as <code>&lt;ul&gt;</code>) and would like the <code>&lt;li&gt;</code> corresponding to the current page to be assigned a different class for CSS highlighting.</p>
  
  <p>So something like pseudo code:</p>
  
  <p><code>&lt;li class={(hrefpage==currentpage)?"highlight":"nothighlight"} ...&gt;</code></p>
  
  <p>Or perhaps even generate the whole <code>&lt;ul&gt;</code> in Jekyll.</p>
  
  <p>How can this be done with minimal changes outside of the offending <code>&lt;ul&gt;</code>?</p>