diff --git a/app/views/components/header.twig b/app/views/components/header.twig
index ff38373..3b7740a 100644
--- a/app/views/components/header.twig
+++ b/app/views/components/header.twig
@@ -11,7 +11,7 @@
- {% if not search %}
+ {% if path %}
diff --git a/app/views/index.twig b/app/views/index.twig
index e8d7e95..268f9b1 100644
--- a/app/views/index.twig
+++ b/app/views/index.twig
@@ -21,7 +21,7 @@
-
- {% if not search and path != '.' %}
+ {% if path and path != '.' %}
{{ include('components/file.twig', { parentDir: true }) }}
{% endif %}
@@ -34,7 +34,7 @@
- {% if readme and not search %}
+ {% if readme %}
{% include 'components/readme.twig' %}
{% endif %}