diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index 586f47b2d74..57a90acb836 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -20,7 +20,9 @@
{% assign pages_list = site.pages %}
{% for node in pages_list %}
{% if node.title != null %}
- {% if node.layout == "page" %}
+ {% if node.url contains "page" %}
+ {% comment %} Do nothing {% endcomment %}
+ {% else %}
{% endif %}
{% endif %}