Skip to content

Instantly share code, notes, and snippets.

@sipple
Last active November 27, 2015 15:39
Show Gist options
  • Save sipple/4e0853317fc6776fabaf to your computer and use it in GitHub Desktop.
Save sipple/4e0853317fc6776fabaf to your computer and use it in GitHub Desktop.
- bodyclass = (current_path == "templates-test-site/index.html") ? 'home' : 'internal'
- bodyclass << ' test-site' if current_resource.data.test_site
- if current_resource.data.events_list
- bodyclass += " events-list"
- if current_resource.data.event_detail
- bodyclass += " event-detail"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment