const {page} = useContent()const trimmedPath = page.value?._path?.substring(0, page.value._path.lastIndexOf("/")) || "";const [prev, next] = await queryContent() .where({'_path':{$contains: trimmedPath, $ne: trimmedPath }}) .only(['_path', 'title']) .sort({ date: 1 }) .where({ isArchived: false || undefined }) .findSurround(page.value._path||"/")</script>