Skip to content

Instantly share code, notes, and snippets.

@jackabox
Created January 31, 2020 21:08
Show Gist options
  • Save jackabox/e5c86092ba9ea970933563dd9f7a15ec to your computer and use it in GitHub Desktop.
Save jackabox/e5c86092ba9ea970933563dd9f7a15ec to your computer and use it in GitHub Desktop.
Show cart as active when on template.
<a href="/cart" {% if template == 'cart' %}class="active"{% endif %}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment