From 36ee745d04c71a317a67ec06683b4b01bd598eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E5=BE=AE?= <1067852565@qq.com> Date: Sat, 30 Nov 2024 01:56:10 -0800 Subject: [PATCH] Fix robots.txt not allow all pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 云微 <1067852565@qq.com> --- themes/mtfwiki-modified/layouts/robots.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/themes/mtfwiki-modified/layouts/robots.txt b/themes/mtfwiki-modified/layouts/robots.txt index d6c589e174..d788ad9c05 100644 --- a/themes/mtfwiki-modified/layouts/robots.txt +++ b/themes/mtfwiki-modified/layouts/robots.txt @@ -1,6 +1,2 @@ User-agent: * -{{- if strings.Contains .Site.BaseURL "mtf.wiki" }} Sitemap: {{ absURL "sitemap.xml" }} -{{- else }} -Disallow: / -{{- end }}