diff --git a/_layouts/default.html b/_layouts/default.html
index 7bbba13b7e9fe8c5a4d6dd9ce9c8d2eba7fbd525..ba551ad384b7a401b33615d68e610358b995f298 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -95,14 +95,15 @@ layout: table_wrappers
               {% endif %}
               {% 
                 if 
-                  site.gh_edit_link and 
-                  site.gh_edit_link_text and 
-                  site.gh_edit_repository and 
-                  site.gh_edit_view_mode and 
-                  site.gh_edit_branch
+                  site.gh_edit_link and
+                  site.gh_edit_link_text and
+                  site.gh_edit_repository and
+                  site.gh_edit_branch and
+                  site.gh_edit_view_mode
+
               %}
               <p class="text-small text-grey-dk-000 mb-0">
-                <a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}/{{ page.path }}">{{ site.edit_link_text }}</a>
+                <a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}/{{ page.path }}">{{ site.gh_edit_link_text }}</a>
               </p>
               {% endif %}
               {% if site.footer_content != nil %}