From 1668ebc3e4004ffcd06f62fe13253a6b25e4351b Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 15 Aug 2023 11:40:43 +0200 Subject: [PATCH] feat: use `.RelPermalink` for search JSON (#859) Avoids CORS problem when the user inputs `baseurl` incorrectly. --- layouts/page/search.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/page/search.html b/layouts/page/search.html index 7c424a6..fbfb74d 100644 --- a/layouts/page/search.html +++ b/layouts/page/search.html @@ -1,11 +1,11 @@ {{ define "body-class" }}template-search{{ end }} {{ define "head" }} {{- with .OutputFormats.Get "json" -}} - + {{- end -}} {{ end }} {{ define "main" }} -
+