From 59947685db2648af5eef6239c1c9854cc815f319 Mon Sep 17 00:00:00 2001 From: andrewpollack Date: Sun, 16 Apr 2023 10:37:50 -0700 Subject: [PATCH] Temporarily remove search functionality Context: #4720 #4721 Search functionality loading is blocking the front page from loading for readers on mobile/tablet devices. This PR temporarily disables search functionality until longer term fix can be implemented. --- pelicanconf.py | 5 +++++ themes/rusted/templates/base.html | 3 ++- themes/rusted/templates/index.html | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index f56f7fe0f..256acc52d 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -56,8 +56,13 @@ if USE_EMAIL_THEME: PLUGINS = ['webassets'] else: + PLUGINS = ['webassets', 'neighbors'] + """ + Search functionality disabled while troubleshooting performance issues + for non-desktop readers. See https://github.com/rust-lang/this-week-in-rust/issues/4271 PLUGINS = ['webassets', 'neighbors', 'search'] SEARCH_HTML_SELECTOR = "article" + """ MARKDOWN = { 'extension_configs': { diff --git a/themes/rusted/templates/base.html b/themes/rusted/templates/base.html index 57090a8a3..4e730ae23 100644 --- a/themes/rusted/templates/base.html +++ b/themes/rusted/templates/base.html @@ -32,8 +32,9 @@ + {% assets filters="libsass,cssmin", output="css/web-min.css", "css/main.scss" %} diff --git a/themes/rusted/templates/index.html b/themes/rusted/templates/index.html index 3a26a1119..7c24b223f 100644 --- a/themes/rusted/templates/index.html +++ b/themes/rusted/templates/index.html @@ -27,6 +27,7 @@

Handpicked Rust updates,
delivered to your inbox.

+ {% endblock content %}