diff --git a/main/templates/main/main_articles_page.html b/main/templates/main/main_articles_page.html
index a30005503de2c99288d622e860c77478f1896ff2..27ec6b1c4c49130e1fbca567c9ca798e3a2bc27a 100644
--- a/main/templates/main/main_articles_page.html
+++ b/main/templates/main/main_articles_page.html
@@ -21,7 +21,6 @@
           <div id="searchResultWrapper">
             {% include 'main/blocks/articles_block.html' with article_data_list=article_data_list %}
           </div>
-      </div>
       {% if show_next_articles %}
           <div class="text-center">
               <a
@@ -38,6 +37,8 @@
                   </span>
                 </a>
           </div>
+        </div>
+
       {% endif %}
     </div>
   </main>