diff --git a/build_search_index.sh b/build_search_index.sh new file mode 100644 index 000000000..69668865b --- /dev/null +++ b/build_search_index.sh @@ -0,0 +1,14 @@ +partials="partials" + +for dir in content/* + do + mydir="$(basename $dir)" + if [ "$mydir" != "$partials" ] + then + { # try + npx pagefind --site .next/server/pages/en/"$mydir" --output-path .next/static/chunks/pages/pageFind"$mydir"; + } || { # catch + echo "Search index creation for version $mydir FAILED!" + } + fi +done diff --git a/components/Breadcrumb/Breadcrumb.tsx b/components/Breadcrumb/Breadcrumb.tsx index a5307159a..ea84c2654 100644 --- a/components/Breadcrumb/Breadcrumb.tsx +++ b/components/Breadcrumb/Breadcrumb.tsx @@ -29,7 +29,7 @@ export default function Breadcrumb({ slug }: { slug: string[] }) { }); return slug ? ( -
+