diff options
Diffstat (limited to 'layouts/404.html')
-rw-r--r-- | layouts/404.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/404.html b/layouts/404.html index eaf565d8..fc54df78 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,7 +4,6 @@ <%= render '/head.*' %> <meta name="robots" content="noindex"> <link rel="canonical" href="<%= @config[:base_url] %>/404.html"> - <link rel="stylesheet" href="<%= @items['/assets/stylesheets/404.*'].path %>"> </head> <body> <%= render '/header.*' %> @@ -17,8 +16,11 @@ </div> </section> <script src="<%= @items['/frontend/shared/global_imports.*'].path %>"></script> + + <% if @config[:algolia] == "true" %> <script src="<%= @items['/frontend/search/docsearch.*'].path %>"></script> - <script src="<%= @items['/frontend/404/404.*'].path %>"></script> + <% end %> + <% if production? %> <%# Add analytics only in production %> <%= render '/analytics.*' %> |