From 21aa30d37413510257d020b4a135939e1d801b4c Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:09:18 +0800 Subject: [PATCH] fix link and search --- docs-2.0-en/overrides/partials/header.html | 6 +++++- docs-2.0-zh/overrides/main.html | 2 +- docs-2.0-zh/overrides/partials/header.html | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs-2.0-en/overrides/partials/header.html b/docs-2.0-en/overrides/partials/header.html index 773ac9be79a..adb60a1dc5d 100644 --- a/docs-2.0-en/overrides/partials/header.html +++ b/docs-2.0-en/overrides/partials/header.html @@ -60,7 +60,11 @@ - {% include "partials/search.html" %} + {% if "search" in config["plugins"] %} + {% include "partials/search.html" %} + {% else %} + {% include "partials/algolia-search.html" %} + {% endif %} {% if config.repo_url %}