Skip to content

Commit 8e5425c

Browse files
Temporarily remove search functionality (#4272)
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.
1 parent a70ea46 commit 8e5425c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

pelicanconf.py

+5
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@
5656
if USE_EMAIL_THEME:
5757
PLUGINS = ['webassets']
5858
else:
59+
PLUGINS = ['webassets', 'neighbors']
60+
"""
61+
Search functionality disabled while troubleshooting performance issues
62+
for non-desktop readers. See https://github.com/rust-lang/this-week-in-rust/issues/4271
5963
PLUGINS = ['webassets', 'neighbors', 'search']
6064
SEARCH_HTML_SELECTOR = "article"
65+
"""
6166

6267
MARKDOWN = {
6368
'extension_configs': {

themes/rusted/templates/base.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full Atom Feed" />
3333

3434
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
35+
<!-- Search temporarily disabled. See https://github.com/rust-lang/this-week-in-rust/issues/4271
3536
<link rel="stylesheet" href="https://files.stork-search.net/basic.css" />
36-
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/stork-dark.css">
37+
<link rel="stylesheet" media="screen and (prefers-color-scheme: dark)" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/stork-dark.css"> -->
3738
{% assets filters="libsass,cssmin", output="css/web-min.css", "css/main.scss" %}
3839

3940
<link rel="stylesheet" href="/{{ ASSET_URL }}" />

themes/rusted/templates/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ <h1 class="pitch">Handpicked Rust updates, <br /> delivered to your inbox.</h1>
2727
</li>
2828
</ul>
2929
</div>
30+
<!-- Search temporarily disabled. See https://github.com/rust-lang/this-week-in-rust/issues/4271
3031
<div class ="col-md-12">
3132
<ul class="list-unstyled search">
3233
<li class="nav-header disabled"><h2>Search</h2></li>
@@ -43,6 +44,6 @@ <h1 class="pitch">Handpicked Rust updates, <br /> delivered to your inbox.</h1>
4344
</script>
4445
</div>
4546
</ul>
46-
</div>
47+
</div> -->
4748
</div>
4849
{% endblock content %}

0 commit comments

Comments
 (0)