vendor/github.com/hashicorp/serf/website/config.rb
def sidebar_current(expected)
    current = current_page.data.sidebar_current
    if current.start_with?(expected)
      return " class=\"active\""
    else
      return ""
    end
  end
# This helps by setting the "active" class for sidebar nav elements
# if the YAML frontmatter matches the expected value.
This helps by setting the "active" class for sidebar nav elements
if the YAML frontmatter matches the expected value.
This helps by setting the " active " class for sidebar nav elements if the YAML frontmatter matches the expected value .
def sidebar_current(expected)
    current = current_page.data.sidebar_current
    if current.start_with?(expected)
      return " class=\"active\""
    else
      return ""
    end
  end
def sidebar_current ( expected ) current = current_page . data . sidebar_current if current . start_with? ( expected ) return " class=\"active\"" else return "" end end
This helps by setting the "active" class for sidebar nav elements
if the YAML frontmatter matches the expected value.
This helps by setting the " active " class for sidebar nav elements if the YAML frontmatter matches the expected value .
expected