From 2d06cc128b7c98e62d4ef7ae0ee59c47cf1b0aa1 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 10 Mar 2026 14:18:25 +0100 Subject: [PATCH] Add page search widget Signed-off-by: Johannes Marbach --- assets/scss/_styles_project.scss | 4 ++++ config/_default/hugo.toml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index cd9937a9..02ad1046 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -661,3 +661,7 @@ dd { margin: 0; } } + +.td-offline-search-results { + max-width: 460px; +} diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index a33f803b..8973d170 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -66,6 +66,9 @@ description = "Home of the Matrix specification for decentralised communication" [params] copyright = "The Matrix.org Foundation C.I.C." +offlineSearch = true +offlineSearchSummaryLength = 200 +offlineSearchMaxResults = 25 [params.version] # must be one of "unstable", "current", "historical"