diff --git a/website/helpers/sidebar_helpers.rb b/website/helpers/sidebar_helpers.rb
index 124a7c53c..ef74de49c 100644
--- a/website/helpers/sidebar_helpers.rb
+++ b/website/helpers/sidebar_helpers.rb
@@ -3,7 +3,7 @@ module SidebarHelpers
# if the YAML frontmatter matches the expected value.
def sidebar_current(expected)
current = current_page.data.sidebar_current || ""
- if current.start_with?(expected)
+ if current == expected or (expected.is_a?(Regexp) and expected.match(current))
return " class=\"active\""
else
return ""
diff --git a/website/source/layouts/atlas.erb b/website/source/layouts/atlas.erb
index 65e1241b7..8df8365e3 100644
--- a/website/source/layouts/atlas.erb
+++ b/website/source/layouts/atlas.erb
@@ -10,7 +10,7 @@
Atlas Provider
-
>
+ >
Resources
- >
diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb
index bb644a0bb..4c77e59e6 100644
--- a/website/source/layouts/aws.erb
+++ b/website/source/layouts/aws.erb
@@ -10,7 +10,7 @@
AWS Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/cloudflare.erb b/website/source/layouts/cloudflare.erb
index d30ce6db5..71364951d 100644
--- a/website/source/layouts/cloudflare.erb
+++ b/website/source/layouts/cloudflare.erb
@@ -10,7 +10,7 @@
CloudFlare Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/cloudstack.erb b/website/source/layouts/cloudstack.erb
index 1d727650f..d9830586c 100644
--- a/website/source/layouts/cloudstack.erb
+++ b/website/source/layouts/cloudstack.erb
@@ -10,7 +10,7 @@
CloudStack Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/consul.erb b/website/source/layouts/consul.erb
index 012bc4d5c..d9ca73e3c 100644
--- a/website/source/layouts/consul.erb
+++ b/website/source/layouts/consul.erb
@@ -10,7 +10,7 @@
Consul Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/digitalocean.erb b/website/source/layouts/digitalocean.erb
index 63d97742a..42ede7db3 100644
--- a/website/source/layouts/digitalocean.erb
+++ b/website/source/layouts/digitalocean.erb
@@ -10,7 +10,7 @@
DigitalOcean Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/dme.erb b/website/source/layouts/dme.erb
index f1adf54d7..e3bd4558e 100644
--- a/website/source/layouts/dme.erb
+++ b/website/source/layouts/dme.erb
@@ -10,7 +10,7 @@
DNSMadeEasy Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/dnsimple.erb b/website/source/layouts/dnsimple.erb
index fcf9074a3..531d15446 100644
--- a/website/source/layouts/dnsimple.erb
+++ b/website/source/layouts/dnsimple.erb
@@ -10,7 +10,7 @@
DNSimple Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/docker.erb b/website/source/layouts/docker.erb
index 6e39096b9..5bb5a1514 100644
--- a/website/source/layouts/docker.erb
+++ b/website/source/layouts/docker.erb
@@ -10,7 +10,7 @@
Docker Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb
index 493dc6816..c7a3d711b 100644
--- a/website/source/layouts/docs.erb
+++ b/website/source/layouts/docs.erb
@@ -6,7 +6,7 @@
Documentation Home
- - >
+
- >
Configuration
- - >
+
- >
Commands (CLI)
- - >
+
- >
State
- - >
+
- >
Providers
- - >
+
- >
Provisioners
- - >
+
- >
Modules
- - >
+
- >
Plugins
- - >
+
- >
Internals
- >
diff --git a/website/source/layouts/google.erb b/website/source/layouts/google.erb
index fbf05b201..fc36ea215 100644
--- a/website/source/layouts/google.erb
+++ b/website/source/layouts/google.erb
@@ -10,7 +10,7 @@
Google Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/heroku.erb b/website/source/layouts/heroku.erb
index 64eccec53..3e4ea8331 100644
--- a/website/source/layouts/heroku.erb
+++ b/website/source/layouts/heroku.erb
@@ -10,7 +10,7 @@
Heroku Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/intro.erb b/website/source/layouts/intro.erb
index 9c19a75db..294cd279f 100644
--- a/website/source/layouts/intro.erb
+++ b/website/source/layouts/intro.erb
@@ -10,7 +10,7 @@
Use Cases
- - >
+
- >
Terraform vs. Other Software
- - >
+
- >
Getting Started
- - >
+
- >
Example Configurations
- >
diff --git a/website/source/layouts/mailgun.erb b/website/source/layouts/mailgun.erb
index ca85eb9f2..8af740c32 100644
--- a/website/source/layouts/mailgun.erb
+++ b/website/source/layouts/mailgun.erb
@@ -10,7 +10,7 @@
Mailgun Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/openstack.erb b/website/source/layouts/openstack.erb
index 4646ae904..39a54fe72 100644
--- a/website/source/layouts/openstack.erb
+++ b/website/source/layouts/openstack.erb
@@ -10,7 +10,7 @@
OpenStack Provider
- - >
+
- >
Resources
- >
diff --git a/website/source/layouts/template.erb b/website/source/layouts/template.erb
index 05c2a4b26..e9dca7dbb 100644
--- a/website/source/layouts/template.erb
+++ b/website/source/layouts/template.erb
@@ -10,7 +10,7 @@
Template Provider
- - >
+
- >
Resources